This method inserts a date field into the document at the current text input position.
Introduced: 28.0.
TXTextControl.FormDateFieldInsert Date, ShowDateControl [, EmptyWidth [, Format]]
Parameter | Description | |
Date |
Specifies a date. The user can changed this date through a date control. When this parameter does not contain a date, the new date field is empty. |
|
ShowDateControl |
Specifies whether the date control is immediately shown after insertion. |
|
EmptyWidth |
Optional. Specifies the width of the date field, in twips, when there is no date selected. If this parameter is omitted, a default width of 2000 twips is used. |
|
Format |
Optional. Specifies the format how to display the date. It can be a Day, Month, Year, and Era Format Picture string. When this parameter is omitted a default format is used depending on the language set for the date field's text. |
The method returns True if the date field could be inserted, otherwise it returns False.
Inserting a form field changes the value of the FieldCurrent property to the identifier of the newly created field.
Date: | Date |
ShowDateControl: | Boolean |
EmptyWidth: | Integer |
Format: | String |
<< TXTextControl.FormDateChanged Event | >> TXTextControl.FormDropDownListInsert Method