<< Click to Display Table of Contents >> VpeSetControlAsInteger |
Sets the value of the specified control as integer.
int VpeSetControlAsInteger(
VpeHandle hControl,
int value
)
VpeHandle hControl
Control Handle
int value
the integer value that shall be assigned to the Field
Returns:
Value |
Description |
True |
if the control's value could be set |
False |
otherwise (for example out of memory) |
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 VpeSetFieldAsInteger.
Example:
hControl = VpeFormFieldControl(hDoc, 1, 1, -9, VFREE, "Hello World!");
VpeSetControlAsInteger(hControl, 1982);
"Interactive Documents" in the Programmer's Manual.