|
of_get
|
|
Full name
|
pfc_n_cst_linkedlistbase.of_get
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_get(ref n_cst_linkedlistnode[])
|
Name
|
Datatype
|
li_rc
|
integer
|
ll_cnt
|
long
|
lnv_current
|
n_cst_linkedlistnode
|
public function long of_get (ref n_cst_linkedlistnode anv_list[]);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Get
//
// Access: public
//
// Arguments :
// anv_list[] (by reference) an array of nodes.
//
// Returns: long
// The number of nodes in the list.
// -1 : Error
//
// Description:
// Returns an in unbounded array all of the nodes.
//
// Note:
//
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
long ll_cnt = 0
integer li_rc
n_cst_linkedlistnode lnv_current
lnv_current = inv_head
do while isvalid(lnv_current)
ll_cnt ++
anv_list[ll_cnt] = lnv_current
li_rc = lnv_current.of_getnext(lnv_current)
if li_rc = -1 then
// no more nodes
exit
end if
loop
return ll_cnt
end function