Reference > TDBDate Control > TDBDate Control Properties > CurrentField Property (TDBDate) |
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.
TDBDate.CurrentField
Read-only at run time. Not available at design time.
Description |
Run Time |
0 - Era |
dbiCurFieldEra |
1 - Year |
dbiCurFieldYear |
2 - Month |
dbiCurFieldMonth |
3 - Day |
dbiCurFieldDay |
This property is not available when the control allows free format entry, and when the control displays the Null and the Era format patterns specified in the Format property. A -1 will be returned in these cases.
See Also
CursorPosition Property (TDBDate)