Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FREAD and files greater than 64K
Message
De
11/07/1998 16:32:32
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116154
Message ID:
00116513
Vues:
13
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform