of_find


pfcapsrv.pbl   >   pfc_n_cst_tree   >   of_find   

Full name pfc_n_cst_tree.of_find
Access public
Extend of integer
Return value integer
Prototype public function integer of_find(ref n_cst_treenode,n_cst_treenode)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_find (ref n_cst_treenode anv_currentnode, n_cst_treenode anv_keynode);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_find
//
//	Access:  public
//
//	Arguments : 
//	anv_currentnode (by ref) : Returns a pointer to the node that was found
//	anv_keynode  : Node that contains the key information to be found
//
//	Returns:  integer
//	1 : Success, node was found
//	-1 : Failure
//
//	Description:  
//	Returns a pointer to the node that matches the key node.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Validate arguments
If IsNull(anv_keynode) or Not IsValid(anv_keynode) Then Return -1

// Validate required references.
If IsNull(inv_Root) or Not IsValid(inv_Root) Then Return -1

setpointer(hourglass!)
anv_currentnode = inv_root
return of_search(anv_currentnode,anv_keynode)
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.setpointer systemfunctions
pfc_n_cst_tree.of_search pfc_n_cst_tree

     
Full name
No Data

     
Name Scope
No Data