General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only