|
of_update
|
|
Full name
|
pfc_n_ds.of_update
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_update(boolean,boolean,powerobject)
|
Name
|
Datatype
|
li_rc
|
Integer
|
lpo_notvalid
|
Powerobject
|
public function integer of_update (boolean ab_accepttext, boolean ab_resetflag, powerobject apo_requestor);//////////////////////////////////////////////////////////////////////////////
//
// Function:
// of_Update
//
// Arguments:
// ab_accepttext When applicable, specifying whether control should perform an
// AcceptText prior to performing the update:
// ab_resetflag Value specifying whether object should automatically
// reset its update flags.
// apo_requestor An object requesting the update within a transaction.
//
// Returns: Integer
// 1 = The update was successful
// -1 = The update failed
//
// Description:
// Request Update logic while also setting the requestor object.
//
// Note:
// Specific Update logic should be coded in pfc_Update event.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
Integer li_rc
Powerobject lpo_notvalid
// Set the object requesting the update.
If this.of_SetUpdateRequestor(apo_requestor) <0 Then Return -1
// Perform the actual update.
li_rc = this.of_Update(ab_accepttext, ab_resetflag)
// Clear the object which requested the update.
this.of_SetUpdateRequestor(lpo_notvalid)
Return li_rc
end function