|
of_count
|
|
Full name
|
pfc_n_cst_linkedlistbase.of_count
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_count()
|
Name
|
Datatype
|
li_cnt
|
integer
|
lnv_node
|
n_cst_linkedlistnode
|
public function long of_count ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Count
//
// Access: public
//
// Arguments : None
//
// Returns:
// integer : the number of nodes in the list
//
// Description:
// Returns the number of nodes in the list
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_cnt
n_cst_linkedlistnode lnv_node
// Determine if there are any.
if isnull(inv_head) or not isvalid(inv_head) then return 0
// Loop counting the number of entries.
lnv_node = inv_head
do while isvalid(lnv_node)
li_cnt ++
lnv_node.of_getnext(lnv_node)
loop
return li_cnt
end function