Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FGETS in SP4 -- a code breaker?
Message
De
27/06/2000 22:44:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00385523
Message ID:
00385526
Vues:
13
>Take a look at the SP4 update notes for VFP. How many people have legacy VFP code out there, before the FileToStr function came along, that _knows_ it's going to reading an entire textblob file of some arbitrary length less than 32K characters and is simply coded as:
>
>cMyStr=FGets(hFile,32767)
>... Basically the equivalent functionality of FileToStr before it came along.
>
>That apparently will now be broken. From the SP4 info:
>
>FGETS function update
>
>A minor behavior change was necessary for the FGETS() function related to Knowledge Base article.
>
>The optional nBytes parameter now has a maximum value of 8192. By definition, FGETS() only returns bytes up to a carriage return if one is encountered before the parameter value is reached.

That behavior regarding the maxlength of FGETS() actually changed back in SP3, but finally made it to the docs here.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform