Reference > TDBTime Control > TDBTime Control Properties > CurrentField Property (TDBTime) |
CurrentField Property (TDBTime)
Returns a number that indicates the current field.
TDBTime.CurrentField
Read-only at run time. Not available at design time.
Description |
Run Time |
0 - AM/PM |
dbiCurFieldAMPM |
1 - Hour |
dbiCurFieldHour |
2 - Minute |
dbiCurFieldMinute |
3 - Second |
dbiCurFieldSecond |
This property returns a number that indicates which field the cursor is currently placed in. If the cursor is placed on a literal, a -1 will be returned.
If the focus moves out of the control, the position where the cursor was last contained will be returned.
This property is not available when the control allows free format entry, or when the control displays the Null format pattern specified in the Format property. A -1 will be returned in these cases.
See Also