UpdateField

PowerBuilder Native Interface

IPB_Session interface:

UpdateField method

Description

Syntax

UpdateField(pbobject obj, pbfieldID fid)

Return Values

Examples

void CallBack::f_newtitle(IPB_Session* session, pbstring str_val, pbobject dwobj)
{

   pbclass cls;
   pbfieldID fid;
   cls=session->GetClass(dwobj);
   fid=session->GetFieldID(cls, "title");
   if (fid==kUndefinedFieldID)
      return;
   session -> SetPBStringField(dwobj,fid,str_val);
   session -> UpdateField(dwobj,fid);
   return ;
}

Usage

See Also