GetDataAsText

Description

Retrieves the text data in the control as a string. This function returns data typed into the control using the SIP. It does not return graphic signature data.

Applies to

Signature controls

Syntax

Integer controlname.GetDataAsText ( data )

Argument

Description

controlname

The name of the control for which you want to retrieve the data

data

The string in which the text data is saved

Returns

Integer. Returns 1 for success and a negative integer for failure.

Usage

The GetDataAsText function returns text data from a Signature control in PWI format in a Unicode string. Only text data, such as text entered using the SIP, is retrieved.

Examples

Example 1

The following example gets text data from a Signature control as a Unicode string:

string ls_text
integer li_rtn

li_rtn = sig_1.GetDataAsText(ls_text)
sle_1.text = String(li_rtn)

See also