Clear Method for LCDatetime
This method clears a previously set Datetime value to. This gives it the same value as a new LCDatetime created without any constructor arguments.
Defined In
LCDatetime
Syntax
Call dateTimeObject.Clear
Example
Option Public
Uselsx "*lsxlc"
Sub Initialize
Dim Clock As New LCDateTime (1999, 12, 31, 23, 59, 59, 99)
Clock.Clear
If (Clock.Text = "") Then
Print "The time has been cleared."
Else
Print "The time is " & Clock.Text
End If
End Sub
Example Output
The time has been cleared.