Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a Bug?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00812190
Message ID:
00812210
Vues:
12
Simon,

The VFP parser is quite literal when it parses a line of code, if it sees && at any point in the line it ignores the rest of the line.

It does not pay attention to the fact that you had the && in a string literal. It sees the line of code as this:

lcTxt = "

which is an invalid statement.

This also extends to ¯os which will expand inside a string literal, which has always annoyed me. Literals should be sacrosanct.

m = "i6"
lcX = "m&m"
? lcX && you don't get the candy, you get the British spy agency instead

>If you try any of the following you get an error in VFP 7 and VFP8.
>
>lcTxt="&&"
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform