Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro and evaluate() fire a error with CR on Literals
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00973008
Message ID:
00973165
Vues:
17
>>>>Characters CHR(13) and CHR(10) are illegal within string literals. They are
>>>treated as line terminators. Therefore, the literal you are trying to construct
>>>is cut in the middle and is left without closing quote. The syntax error is expected.
>>>
>>>Execscript(),Macro,Evaluate(),NORMALIZE(),OLDVAL(),CURVAL()... have to evaluate a correct
>>>VFP literals code ( ASCII(0|10|13) are not allowed into a VFP expression ).
>>
>>That's not quite what he said.
>>
>>
? EXECSCRIPT("?printLenString([A])"+CHR(13)+"?printLenString([A])")
>>
>>PROCEDURE printLenString(s)
>>RETURN LEN(s)
>>
>>is perfectly valid code.
>
>Of course!

Right. Guess I need more caffeine. Sorry. :-)
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform