Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro and evaluate() fire a error with CR on Literals
Message
De
29/12/2004 19:14:15
 
 
À
29/12/2004 13:01:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00973008
Message ID:
00973136
Vues:
21
Hi Fabio,

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.

Thanks,
Aleksey.



>Run this:
>no errors in VFP8
>
>X=CHR(13)
>=ASC('&X')
>=EVALUATE(["]+m.x+["])
>
>
>A bug fix ?
>Where this bug creates problems?
>One what is sure:
>this slowdonw all the EVALUATE() that I use in order to construct parametric scripts.
>
>But the true issue,
>where exists the possibility to execute incomplete code has been resolved?
>
>No:
>
>x="? 1"+CHR(13)+"? 2"
>&x
>x="trx(1)"+CHR(13)+"trx(2)"
>EVALUATE(x)
>
>PROCEDURE trx(z)
> ? z
>
>
>Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform