Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffer overrun
Message
De
27/10/2011 04:49:17
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/10/2011 16:56:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01527390
Message ID:
01527450
Vues:
150
>Out of curiosity I made a few minor modifications so that your example would run in VFP6 to see what would happen. I don't get the error in VFP6 (the modified program will give the error as before in VFP9). I do not have VFP8 to test to see if problem occurs in VFP8.
>
>The only other significance I can think of with ampersands would be with macro expansion -- though behavior in VFP6 doesn't seem to indicate anything happening with macros being evaluated. The thing about 254 characters does seem interesting -- it's one character shy of maximum length of "pascal-style" strings (where a single byte is used for length) -- which happens to be the longest C-style string you'd be able to encode within a pascal-style string.

The ampersands in the case where this happened were all surrounded with spaces. Also, the error seems to catch at 253 (IIRC), suggesting that some kind of expansion was taking place. Since it's all somewhere in the internals, we can only guess.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform