GetText

Description

Returns the Value property as a text string with the specified Format or CustomFormat applied.

Applies to

DatePicker controls

Syntax

controlname.GetText (  )

Argument

Description

controlname

The name of the control for which you want to get the text

Returns

String.

Usage

Returns the date and time stored in the Value property as a text string formatted according to the Format property, or if Format is set to dtfCustom!, according to the format specified in the CustomFormat property.

Examples

Example 1

This example retrieves the date and time stored in the Value property of dp_1 to the string ls_text:

string ls_text
ls_text = dp_1.GetText()

See also