Reference > TDBMask Control > TDBMask Control Properties > CurrentField Property (TDBMask) |
CurrentField Property (TDBMask)
This property returns a 0-based index number that indicates which field the cursor is currently placed in. If the cursor is placed on a literal, a -1 will be returned.
TDBMask.CurrentField
Read-only at run time. Not available at design time.
If the focus moves out of the control, the position where the cursor contained the last will be returned.
When the Format property is set to a zero length string, this property will always return a 0, indicating the cursor is currently placed within the 1st field.
See Also