ComponentOne True DBInput Pro 8.0
CurrentField Property (TDBTime)

 

Reference> TDBTime Control> TDBTime Control Properties> CurrentField Property (TDBTime)

CurrentField Property (TDBTime)

Returns a number that indicates the current field.

Syntax

TDBTime.CurrentField

Read-only at run time. Not available at design time.

Values

Description

Run Time

0 - AM/PM

dbiCurFieldAMPM

1 - Hour

dbiCurFieldHour

2 - Minute

dbiCurFieldMinute

3 - Second

dbiCurFieldSecond

Remarks

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

CursorPosition Property (TDBTime)

Format Property (TDBTime)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback