Hi guys,
I have an app that uses the GetFileOpenName method.
This app used to be a .net target, because it calls a .net dll. I did 2 things to this app: I used the new PB 2019 R2 .net nvo calling (so it's now a classic PB target) and moved it from PB 2019 to 2019 R2.
The issue is that I use this GetFileOpenName to get a list of files. Each file is named alike, like this example: 41131085031995000100550010000933131766531488-procNFe.xml. Sometimes I load only 1 file, sometimes thousands.
The issue that come up is that the PB/GetFileOpenName interface seems to have a size limitation now. With files named like the example above, the return array of file names only brings back around 600 files, and the path variable brings back garbage text.
ll_ret = GetFileOpenName('XML', ls_path, ls_fileName[], 'xml', 'XML Files (*.xml),*.xml', ls_dirImportXML)
This used to work before my 2 described changes. I even tried to pre-load the variables ls_path with Space(1000) and ls_fileName[] with a 1000 long, 1000 spaces array, but got the same result. If the file names are shorter, I can get more files on the array, but it still crops the selection and brings back garbage on ls_path.
Do any of you know a workaround, if it's me making a mistake or any other ideas?
Thanks,
Daniel