Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preprocesor bug
Message
De
21/05/2006 23:45:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/05/2006 23:30:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01123796
Message ID:
01123865
Vues:
13
>I am not sure how relevant the following is for the discussion, but note that whatever you #define need not be a valid expression. It is just text which is replaced before the actual compilation phase. In theory, this might be used to your advantage, sometimes - although it might also make the program quite confusing.
>
>Here is an example:
>
>
>#define mydef "this is
>
>clear
>? mydef a text"
>
>
>The output shows This is a text

You're right... just recently I found some piece of my old FPD2.6 code, with

#define _out fwrite(h, chr(9)+

... _out "some string")

And as Fabio points out, an empty string is also a string... so, how does one #Define an empty string (not a pair of quotes)?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform