Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FREAD and files greater than 64K
Message
From
11/07/1998 16:32:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00116154
Message ID:
00116513
Views:
12
>I have written a routine to go through our legacy FPD 2.6 PRG's to replace certain syntax. However, I have problems with PRG's 64K or greater. Are VFP strings limited to 64K?
>
>cFileContents = FREAD(nFileHandle, nEOF)

The strings may go as far as 2G, but I'm not sure this can be passed as a parameter to just any function. Functions in FoxTools, for one, were limited to 254 bytes in earlier versions; haven't tried it out recently. I suspect the StrTran (which you're probably using - I do when I write code converters) is the obstacle.

The workaround for this is to process the source in chunks - find the Procedure and Function starting/ending points, and process them one by one. They shouldn't be longer than 64K each, by definition.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform