GetFormatDatetime Method for LCField
This method retrieves the format of a Datetime type field. It is only valid for fields of type Datetime.
Use the LCField.SetFormatDatetime method to assign stream format information. Refer to the Field Format section for a description of format values.
Defined In
LCField
Syntax
Call thisField. GetFormatDatetime (dateTimeFlags, size)
Parameters
All GetFormat<type> parameters are outputs.
Parameter |
Description |
---|---|
dateTimeFlags |
Long. Optional. Datetime flags of the field. Refer in this chapter to "LCField Class Methods and Properties Summary," Field Format Datetime section for a description of the flags. |
size |
Long. Optional. Size in bytes of the datetime field. Zero indicates the size of a Connector Datetime (8bytes). |
Example
Option Public
Uselsx "*lsxlc"
Sub Initialize
Dim field As New LCField (LCTYPE_DATETIME, 1)
Dim flags As Long
Dim size As Long
Call field.SetFormatDatetime (LCDATETIMEF_NO_TIME, 0)
Call field.GetFormatDateTime (flags, size)
Print "The datetime format flag setting is " & Hex(flags) & _
"h, size = " & size & " bytes."
End Sub
Example Output
The datetime format flag setting is 2h, size = 0 bytes.