|
pfc_updatespending
|
|
Full name
|
pfc_n_ds.pfc_updatespending
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_updatespending()
|
Name
|
Datatype
|
li_rc
|
integer
|
event pfc_updatespending;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_UpdatesPending
//
// Arguments: none
//
// Returns: integer
// 1 = Updates are pending.
// 0 = No updates are pending
//
// Description:
// Determine if any updates are pending on this datastore.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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
// Check if DataStore is updateable
if not of_IsUpdateable() then
return 0
end if
// Check for any updates that may be pending
if this.ModifiedCount() + this.DeletedCount() > 0 then
li_rc = 1
end if
// There are no updates pending on this DataStore.
return li_rc
end event