Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfpcompression.fll issue
Message
From
28/12/2018 17:11:25
 
 
To
28/12/2018 15:48:46
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01664913
Message ID:
01664930
Views:
61
>Do an ADIR() to get a list of files in each folder. If any of them have an underscore, replace it (untested, off the top of my head, needs adjusting on how to do the renames I'm sure):

In the off chance you're using an older version of VFP where there is the 65000 element limit for arrays, then you'll need to use the SYS(2000) function (basically used like you're using FindFirstFile() and FindNextFile() API calls). I do remember running into that problem back in the DOS days (i.e. "no one will ever have that many files in a directory" assumption could easily broken). Also discovered when code pages are involved -- in particular anything that uses double-byte character set (such as East Asian languages like Chinese, Korean and Japanese), additional assumptions about the filename could also get broken quite quickly too, especially when you've not set the codepage properly.
Previous
Reply
Map
View

Click here to load this message in the networking platform