IPB_Session interface:
Set<type>Field method
Description
A set of methods that set a new value in an instance field
of an object.
Syntax
SetArrayField ( pbobject obj, pbfieldID fid, pbarray value )
SetBlobField ( pbobject obj, pbfieldID fid, pbblob value )
SetBoolField ( pbobject obj, pbfieldID fid, pbboolean value )
SetByteField ( pbobject obj, pbfieldID fid, pbbyte value )
SetCharField ( pbobject obj, pbfieldID fid, pbchar value )
SetDateField ( pbobject obj, pbfieldID fid, pbdate value )
SetDateTimeField ( pbobject obj, pbfieldID fid, pbdatetime value )
SetDecField ( pbobject obj, pbfieldID fid, pbdec value )
SetDoubleField ( pbobject obj, pbfieldID fid, pbdouble value )
SetIntField ( pbobject obj, pbfieldID fid, pbint value )
SetLongField ( pbobject obj, pbfieldID fid, pblong value )
SetLongLongField ( pbobject obj, pbfieldID fid, pblonglong value )
SetObjectField ( pbobject obj, pbfieldID fid, pbobject value )
SetPBStringField ( pbobject obj, pbfieldID fid, pbstring value )
SetRealField ( pbobject obj, pbfieldID fid, pbreal value )
SetStringField ( pbobject obj, pbfieldID fid, LPCTSTR value )
SetTimeField ( pbobject obj, pbfieldID fid, pbtime value )
SetUintField ( pbobject obj, pbfieldID fid, pbuint value )
SetUlongField ( pbobject obj, pbfieldID fid, pbulong value )
Argument
|
Description
|
obj
|
The handle of the object whose field
is to be accessed
|
fid
|
The field ID of the specified object
|
value
|
The value to be set
|
Return Values
PBX_RESULT.
Examples
These statements set a new string value in a string
field:
pbstring str = session->NewString(d_message.c_str());
if (str != NULL)
session->SetPBStringField(d_pbobj, d_fidMsg, str);
Usage
When you change any visual property of a PowerBuilder object
by calling Set<type>field functions,
the property is changed but the property is not refreshed in the
graphical user interface. UpdateField refreshes
the visual properties of PowerBuilder objects. You must call UpdateField explicitly
when changing any visual property with the Set<type>field functions.
See Also