of_postupdate


pfcmain.pbl   >   pfc_u_lvs   >   of_postupdate   

Full name pfc_u_lvs.of_postupdate
Access public
Extend of integer
Return value integer
Prototype public function integer of_postupdate()

Name Datatype
No Data

Name Datatype
li_rc Integer
lpo_empty powerobject[]
lpo_pending powerobject[]
lpo_updatearray powerobject[]

public function integer of_postupdate ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_PostUpdate
//
//	Access:		public
//
//	Arguments:	None
//
//	Returns:  Integer
//	 1 if it succeeds
//  0 No Action
// -1 if an error occurs
//	
//	Description:
//	Perform post update processing.  Clear the ipo_pendingupdates array.  
//
// Note:
//	Specific PostUpdate logic should be coded in descendant pfc_PostUpdate event.
//	Part of the SelfUpdatingObject(SUO) API.
//	No Action will be executed, If the object is not Updateable.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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_updatearray[]
powerobject lpo_pending[]
powerobject lpo_empty[]

// Make sure there is something to take action on.
If Not of_IsUpdateable() Then Return NO_ACTION

If UpperBound(ipo_pendingupdates) > 0 Then
	// Should be part of a SUO unit.
	lpo_pending = ipo_pendingupdates
Else
	// Might not be part of an SUO unit.  Need to know what objects had updatespending. 
	this.of_GetObjects(lpo_updatearray)

	If this.Event pfc_UpdatesPending(lpo_updatearray, lpo_pending) < 0 Then
		Return -1
	End If
End If

li_rc = this.Event pfc_postupdate(lpo_pending)

ipo_pendingupdates = lpo_empty

return li_rc

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.upperbound systemfunctions
pfc_u_lvs.of_isupdateable pfc_u_lvs
pfc_u_lvs.of_getobjects pfc_u_lvs
pfc_u_lvs.pfc_updatespending pfc_u_lvs
pfc_u_lvs.pfc_postupdate pfc_u_lvs

     
Full name
No Data

     
Name Scope
No Data