| **Navigation:** [[introduction.htm|Language Reference]] > [[chapter runtime properties.htm|App C - PROP: Runtime Properties]] > Complete Property List >PROP:TimeZeroIsLongOne | [[prop ticks.htm|{{btn_prev_n.gif|Previous page}}]][[chapter runtime properties.htm|{{btn_home_n.gif|Return to chapter overview}}]][[prop tipdelay.htm|{{btn_next_n.gif|Next page}}]] |
| ||
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