|
of_updatespending
|
|
Full name
|
pfc_w_master.of_updatespending
|
Access
|
public
|
Override of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_updatespending()
|
Name
|
Datatype
|
li_rc
|
integer
|
lpo_pending
|
powerobject[]
|
lpo_updatearray
|
powerobject[]
|
NO_UPDATESPENDING
|
integer
|
public function integer of_updatespending ();//////////////////////////////////////////////////////////////////////////////
//
// Funciton:
// of_UpdatesPending
//
// Access: public
//
// Arguments: none
//
// Returns: integer
// 1 = Updates are pending.
// 0 = No updates are pending
// -1 = Failure
//
// Description:
// Determine if any updates are pending on this object.
// Set the ipo_pendingupdates array.
//
// Note:
// Specific UpdatesPending logic should be coded in descendant pfc_UpdatesPending event.
// Part of the SelfUpdatingObject(SUO) API.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
constant integer NO_UPDATESPENDING =0
integer li_rc
powerobject lpo_updatearray[]
powerobject lpo_pending[]
// Make sure there is something to take action on.
If Not of_IsUpdateable() Then Return NO_UPDATESPENDING
// Determine the appropriate array.
If UpperBound(ipo_updateobjects) > 0 Then
lpo_updatearray = ipo_updateobjects
Else
lpo_updatearray = This.Control
End If
li_rc = this.Event pfc_UpdatesPendingRef(lpo_updatearray, lpo_pending)
ipo_pendingupdates = lpo_pending // *Set* the instance ipo_pendingupdates
return li_rc
end function