Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constants and SYS(5) + SYS(2003)
Message
De
22/09/1999 15:34:55
 
 
À
22/09/1999 15:31:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00267724
Message ID:
00267747
Vues:
25
>I'm getting "kgNow" as a result. The precompiler will not replace constant inside quotes. The following will work:
>
>#DEFINE kdNow DATETIME()
>lcDate = kdNow
>?lcDate
>#DEFINE kdNow DATETIME()
>>
>>lcDate = "kdNow"
>>
>>?lcDate
>>
>>I'm getting the evaluated datetime not the string. But it changes every time I run it.

You're right. I think I was testing the wrong thing.

You could do

#DEFINE kdNow "DATETIME()"

ldNow = EVAL( kdNow )

?kdNow

?eval("kdNow")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform