Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior!
Message
De
24/04/2003 06:24:25
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
 
 
À
24/04/2003 06:17:52
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00781027
Message ID:
00781028
Vues:
21
Hi Emanuele,

I don't use [] for strings - I use either single or double quotes, so I hadn't seen this behaviour before although I seem to remember reading something about it (maybe here on the UT). It certainly appears that VFP is evaluating the string for DEFINEs. Use single or double quotes instead.

Regards,

Liam





>Copy & Paste this code in a .Prg:
>
>#define NUMBER 1000
>? [The num. is NUMBER]
>
>executing the .prg you'll have this:
>
>The num. is 1000
>
>Someone can explain me Why ?
Liam O'Hagan
MCP VFP Desktop Apps
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform