|
of_updatespending
|
|
Full name
|
pfc_n_cst_luw.of_updatespending
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_updatespending(powerobject[],ref powerobject[])
|
Name
|
Datatype
|
li_rc
|
Integer
|
lpo_empty
|
PowerObject[]
|
public function integer of_updatespending (powerobject apo_control[], ref powerobject apo_controlpending[]);//////////////////////////////////////////////////////////////////////////////
//
// Function:
// of_UpdatesPending
//
// Access: public
//
// Arguments:
// apo_control[] array of controls to check for any updates pending
// apo_controlpending[] (by reference) array of controls which have updates pending
//
// Returns: integer
// # of objects with updates pending
// -1 = error
//
// Description:
// Check in each object for updatespending for the specified array and store
// references in ipo_pendingupdates. Return by reference those objects with
// updates pending in apo_controlpending.
//
// Note:
// The objects with updates pending are stored in ipo_pendingupdates[].
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_empty[]
// Initiliaze reference variable.
apo_controlpending = lpo_empty
// Clear the instace variable which holds pending objects.
ipo_pendingupdates = lpo_empty // *Clear* instance.
// Determine the objects with Updates pending.
li_rc = this.of_UpdatesPending(apo_control)
If li_rc >= 1 Then
// Populate the pending objects reference.
apo_controlpending = ipo_pendingupdates
End If
// Clear the instace variable which holds pending objects.
ipo_pendingupdates = lpo_empty // *Clear* instance.
Return li_rc
end function