prop_timezeroislongone.htm
Navigation: Language Reference > App C - PROP: Runtime Properties > Complete Property List >PROP:TimeZeroIsLongOne | |
System property when set to TRUE (1) forces a TIME field with value 0 to be converted to a Standard Time of 1. Normally such fields are converted to a Standard Time of 0. You can read this property to get the current conversion rules.
Example:
PROGRAM ATime TIME LongTime LONG CODE LongTime = ATime MESSAGE(LongTime) ! will display 0 SYSTEM{PROP:TimeZeroIsLongOne} = TRUE MESSAGE(LongTime) ! will now display 1
The above code is what appears in the ClarionHelp.chm (as of CW11.1) Below is a fix.
PROGRAM MAP ! required for MESSAGE which appears in builtins.clw END ATime TIME LongTime LONG CODE LongTime = ATime MESSAGE(LongTime,'#1') ! will display 0 SYSTEM{PROP:TimeZeroIsLongOne} = TRUE MESSAGE(LongTime,'#2') ! will still display 0 LongTime = ATime MESSAGE(LongTime,'#3') ! will now display 1
prop_timezeroislongone.htm.txt · Last modified: 2023/02/21 09:35 by markg