ControlAsString

<< Click to Display Table of Contents >>

Navigation:  Interactive Objects >

ControlAsString

Previous pageReturn to chapter overviewNext page

Returns / sets the value of the specified control as string.

This property belongs to TVPEObject.

property string VPE.ControlAsString

read / write; runtime only

Remarks:

If the control was created from a template and it has an associated field, you should not use this property. It is - from the programmer's view and source code logic - more efficient to use instead the field's methods and properties in order to access the control's value.

The corresponding property of the field is AsString.

 

In case of an error, an exception is thrown (for example, out of memory).

Example:

Dim RecipientCompany As String

Dim objControl As TVPEObject

objControl = Doc.FormFieldControl(1, 1, -9, VFREE, "Hello World!")

RecipientCompany = objControl.ControlAsString

objControl.ControlAsString = "IDEAL Software"

 

.NET:

use Doc.nFree instead of VFREE in the example above

 

See also:

"Interactive Documents" in the Programmer's Manual.