|
of_destroy
|
|
Full name
|
pfc_n_cst_tree.of_destroy
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_destroy(n_cst_treenode)
|
Name
|
Datatype
|
li_rc
|
integer
|
public function integer of_destroy (n_cst_treenode anv_currentnode);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_destroy
//
// Access: public
//
// Arguments :
// anv_currentnode n_cst_treenode : pointer to a node
//
// Returns: integer
// 1 = success
// -1 = failure, usually because the node is not found
// -2 = failure, the node passed in is invalid
//
// Description:
// Destroys the passed node, resets the pointers of any nodes that are linked to it.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_rc
if isnull(anv_currentnode) or not isvalid(anv_currentnode) then return -2
li_rc = of_remove(anv_currentnode)
if li_rc = 1 then
destroy anv_currentnode
end if
return li_rc
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
pfc_n_cst_tree.of_remove |
pfc_n_cst_tree
|