|
of_getroot
|
|
Full name
|
pfc_n_cst_tree.of_getroot
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_getroot(ref n_cst_treenode)
|
public function integer of_getroot (ref n_cst_treenode anv_node);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_getroot
//
// Access: public
//
// Arguments :
// anv_node n_cst_treenode : Returns the root node
//
// Returns: integer
// 1 : success
// -1 : failure, root node is invalid
//
// Description:
// Get a pointer to the root node of 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.
//
//////////////////////////////////////////////////////////////////////////////
// Make sure there is something to return.
if isnull(inv_root) or not isvalid(inv_root) then
return -1
end if
anv_node = inv_root
return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|