|
of_getregistered
|
|
Full name
|
pfc_n_cst_tmgmultiple.of_getregistered
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_getregistered(ref n_cst_tmgregisterattrib[])
|
Name
|
Datatype
|
li_cnt
|
integer
|
li_get
|
integer
|
li_idx
|
integer
|
lnv_empty
|
n_cst_tmgregisterattrib[]
|
public function integer of_getregistered (ref n_cst_tmgregisterattrib anv_timerattrib[]);//////////////////////////////////////////////////////////////////////////////
//
// Function:
// of_GetRegistered
//
// Access:
// public
//
// Arguments:
// anv_timerattrib[] : n_cst_tmgregisterattrib (by ref); array of entries
//
// Returns:
// integer : the number of entries in the passed back array
// SUCCESS = 1
// ERR = -1
//
// Description:
// Returns the list of entries that have been registered.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_get = 0
integer li_cnt
integer li_idx
n_cst_tmgregisterattrib lnv_empty[]
// Clear out the reference variable.
anv_timerattrib = lnv_empty
// Find and get the objects.
li_cnt = upperbound(inv_tmgregister)
For li_idx = 1 To li_cnt
If isvalid(inv_tmgregister[li_idx].ipo_notify) Then
li_get ++
anv_timerattrib[li_get] = inv_tmgregister[li_idx]
End If
Next
Return li_get
end function
Name
|
Owner
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.upperbound |
systemfunctions
|