Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Did you know...
Message
De
09/08/2001 17:16:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00542010
Message ID:
00542032
Vues:
20
While you're at it, did you know that you can't put a double asterisk (&&) between quotes without getting an error when it compiles?


>... that macro expansion works inside of quotes? I just ran across this in someone else's code, and thought that it was a bug for sure. You learn something new every day, although I'm not sure when I would have the need for this. More importantly, this behavior could produce a bug if you're not expecting it . An example is below.
>
>
>cMacro = "Test"
>? "&cMacro"  && returns "Test"
>? cMacro  && this is how most people would do it
>? "&cAnotherMacro"  && returns "&cAnotherMacro" since variable doesn't exist.
>
>Example producing unwanted results:
>D = "Test"
>? "R&D"  && returns "RTest"
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform