of_destroy


pfcapsrv.pbl   >   pfc_n_cst_tree   >   of_destroy   

Full name pfc_n_cst_tree.of_destroy
Access public
Extend of long
Return value long
Prototype public function long of_destroy()

Name Datatype
No Data

Name Datatype
li_rc integer
ll_cnt long
ll_index long
lnv_list n_cst_treenode[]

public function long of_destroy ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_destroy
//
//	Access:  public
//
//	Arguments: None
//
//	Returns:  Long
//	The number of nodes destroyed.
// -1 : error
//
//	Description:  
//	Delete and destroy all the nodes in the tree
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

n_cst_treenode lnv_list[]
long 		ll_cnt
long		ll_index
integer  li_rc

ll_cnt = of_get(lnv_list)

for ll_index = 1 to ll_cnt
	li_rc = of_destroy(lnv_list[ll_index])
	if li_rc = -1 then 
		return -1
	end if
next

return ll_cnt
end function

     
Name Owner
No Data

     
Name Owner
pfc_n_cst_tree.of_destroy pfc_n_cst_tree
pfc_n_cst_tree.of_get pfc_n_cst_tree

     
Full name
No Data

     
Name Scope
No Data