|
of_refresh
|
|
Full name
|
pfc_n_cst_dwcache.of_refresh
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_refresh()
|
Name
|
Datatype
|
li_cnt
|
Integer
|
li_rc
|
Integer
|
li_refreshcnt
|
Integer
|
li_upper
|
Integer
|
public function long of_refresh ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Refresh
//
// Access: public
//
// Arguments:
//
// Returns: long
// number of DataStores refreshed.
// -1 error.
//
// Description:
// Refresh all objects that can be refreshed.
// *Note: All registered methods have the capabilitty of being refreshed.
// On certain circustances registered objects cannot be refreshed.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1999 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_upper=0
Integer li_cnt=0
Integer li_refreshcnt=0
Integer li_rc
// Loop around all objects and retrieve on those that have the capabilities.
li_upper = UpperBound(inv_cachelist)
For li_cnt = 1 to li_upper
If Len(inv_cachelist[li_cnt].s_id) > 0 Then
li_rc = of_Refresh(inv_cachelist[li_cnt].s_id)
If li_rc > 0 Then
// Count the number of objects that have been refreshed.
li_refreshcnt ++
End If
End If
Next
Return li_refreshcnt
end function