Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eval() length limit ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01050996
Message ID:
01051405
Vues:
15
>>
>>lcBigStringConstant = ["] + replicate( "1234567890", 25 ) + [a"]
>>lcEvalIt = lcBigStringConstant
>>for i = 1 to 100
>>   lcEvalIt = lcEvalIt + " + " + lcBigStringConstant
>>   lcTest = eval( lcEvalIt )
>>   ? i, len( lcEvalIt ), len( lcTest )
>>endfor
>>
>>
>>>what is the max amount of characters that can be an argument to EVAL() ?
>>>It seems to be more than 256 (somewhat suprisingly) but I need to know what its limit is.
>
>Interesting, the code causes a crash in VFP6SP5

A lot of bugs have been fixed since VFP6SP5. :)
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform