SetDataAsInk

Description

Sets the data in the control in Pocket Word Ink (PWI) format. This format is compatible with Pocket Word.

Applies to

Signature controls

Syntax

Integer controlname.SetDataAsInk ( data )

Argument

Description

controlname

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

data

The blob containing the data in PWI format

Returns

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

Usage

The SetDataAsInk function can set both typed and freehand drawing or writing into a Signature control.

Examples

Example 1

The following example reads data in PWI format from a file into a blob, then sets the data into a Signature control:

blob lblb_ink
integer li_file, li_rtn

li_file = FileOpen("\My Documents\testpwi.pwi", &
   StreamMode!, Read!)

FileRead( li_file, lblb_ink )
FileClose( li_file )

li_rtn = sig_1.SetDataAsInk(lblb_ink)
sle_1.text = string(li_rtn)

See also