SetConstant Method for LCDatetime

This method produces a special constant Datetime object.

Defined In

LCDatetime

Syntax

Call lcDatetime.SetConstant (datetimeConstant)

Parameters

Parameter

Description

datetimeConstant

One of the following Datetime Constants:

LCDTCONST_MINIMUM: A datetime which is less than any other datetime (except another minimum).

LCDTCONST_MAXIMUM: A datetime that is greater than any other datetime (except another maximum).

LCDTCONST_WILDCARD: A datetime that matches any other datetime. The date value is LCDTNULL_DATE and the time value is LCDTNULL_TIME.

Example

Option Public
Uselsx "*lsxlc"  
Sub Initialize
  Dim Clock As New LCDateTime (1999, 12, 31, 23, 59, 59, 99)
  Dim Match As New LCDatetime
  Call Match.SetConstant (LCDTCONST_WILDCARD)
  If (Clock.Compare (Match) = 0) Then
    Print "The current time matches the wild card constant."
  Else
    Print "The current time does not match the wild card constant."
  End If
End Sub

Example Output

The current time matches the wild card constant.