|
of_unregister
|
|
Full name
|
pfc_n_cst_dwcache.of_unregister
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_unregister()
|
Name
|
Datatype
|
li_cnt
|
Integer
|
li_rc
|
Integer
|
li_unregistercnt
|
Integer
|
li_upper
|
Integer
|
public function integer of_unregister ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_UnRegister
//
// Access: public
//
// Arguments: none
//
// Returns: integer
// the number of Objects that were unregistered.
// -1 error.
//
// Description:
// UnRegisters all the objects that have been registered.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_rc=0
Integer li_upper=0
Integer li_cnt=0
Integer li_unregistercnt=0
// Loop and Unregister all objects.
li_upper = UpperBound(inv_cachelist)
For li_cnt = 1 to li_upper
If Len(inv_cachelist[li_cnt].s_id) > 0 Then
// A registered entry has been found.
li_rc = of_Unregister (inv_cachelist[li_cnt].s_id)
If li_rc > 0 Then
li_unregistercnt ++
Else
Return -1
End If
End If
Next
// Return the number of Objects that were unregistered.
Return li_unregistercnt
end function