SetFormFieldTimeFormat
Form fields, actions
Description
Adds matching AFTime_Keystroke and AFTime_Format actions to a form field
Syntax
Function TPDFlib.SetFormFieldTimeFormat(Index: Integer; TimeFormat: TPDFlibFormTimeFormat): Integer;Parameters
| Index | One-based form-field index that receives the keystroke and format actions |
|---|---|
| TimeFormat | ftf24HourMinutes 0, ftf12HourMinutes 1, ftf24HourSeconds 2 or ftf12HourSeconds 3; values outside the enumeration are rejected |
Return values
Returns 1 on success or 0 when the field is invalid or PDF/A mode is active
Remarks
The typed selector keeps keystroke validation and displayed time formatting on the same 12-hour or 24-hour pattern