Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Constants and SYS(5) + SYS(2003)
Message
From
22/09/1999 15:34:55
 
 
To
22/09/1999 15:31:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00267724
Message ID:
00267747
Views:
24
>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")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform