IPB_Session interface:
UpdateField method
Description
Refreshes a visual property of a PowerBuilder object.
Syntax
|
1 |
UpdateField(pbobject <span>obj</span>, pbfieldID <span>fid</span>) |
|
Argument |
Description |
|---|---|
|
obj |
The pbobject whose |
|
fid |
The field ID of the object |
Return Values
PBXRESULT. Returns success or failure.
Examples
This function changes the title of a DataWindow control:
|
1 |
void CallBack::f_newtitle(IPB_Session* session, pbstring str_val, pbobject dwobj)<br>{<br> <br>   pbclass cls;<br>   pbfieldID fid;<br>   cls=session->GetClass(dwobj);<br>   fid=session->GetFieldID(cls, "title");<br>   if (fid==kUndefinedFieldID)<br>      return;<br>   session -> SetPBStringField(dwobj,fid,str_val);<br>   session -> UpdateField(dwobj,fid);<br>   return ;<br> } |
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 this
function explicitly when changing any visual property with the Set<type>field functions.
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest