<< Click to Display Table of Contents >> VpeSetControlAsString |
Sets the value of the specified control as string.
int VpeSetControlAsString(
VpeHandle hControl,
LPCSTR value
)
VpeHandle hControl
Control Handle
LPCSTR value
pointer to a buffer that holds the string 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 VpeSetFieldAsString.
Example:
hControl = VpeFormFieldControl(hDoc, 1, 1, -9, VFREE, "Hello World!");
VpeSetControlAsString(hControl, "IDEAL Software");
"Interactive Documents" in the Programmer's Manual.