Please look at my question. Sadly, no one answered me before
I try now to clarify my question - in short: How to set and check a null-value for date? (which I internally use for "no date value set here")
What I call zero date is Jan 1 st 1970 (this is in fact the earliest date to be set in Livecode)
I would like to have the following code:
Set tDate to zero date and then check this fact, i.e. someting like:
Code: Select all
local tDate
put (...) into tDate ## 1.
if (tDate = ...) ## 2.
answer "tDate is zero-date"
else
answer "tDate is not zero-date"
end if
Line ## 1. tDate should get the value of Jan 1 st 1970. What should I write in place of the (...)
Line ## 2. The above fact should be positively checked, hence the if should return YES, i.e. I should see a popup with "tDate is zero-date". What should I write in place of the ... ?
Please provide a working code, i.e. fill the ... in lines ## 1. and ## 2. . Any help will be appreciated.
Best,
Greg Falda