Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro and evaluate() fire a error with CR on Literals
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00973008
Message ID:
00973169
Views:
19
>>>>>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. :-)

Not for me, i go to sleep.

Ciao
Previous
Reply
Map
View

Click here to load this message in the networking platform