of_setcompare


pfcapsrv.pbl   >   pfc_n_cst_tree   >   of_setcompare   

Full name pfc_n_cst_tree.of_setcompare
Access public
Extend of integer
Return value integer
Prototype public function integer of_setcompare(n_cst_treenodecompare)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setcompare (n_cst_treenodecompare anv_compare);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_setcompare
//
//	Access:  public
//
//	Arguments : 
//	anv_compare   n_cst_nodecompare : the object to be used to compare two nodes
//
//	Returns:  integer
//	1 = success
// -1 = failure
// -2 = failure, the compare object has already been set
//
//	Description:  
//	Allows the specification of a different comparison object
//
//////////////////////////////////////////////////////////////////////////////
//
//	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 the comparison object.
if not isvalid(anv_compare) then 
	return -1 
end if

// Validate the comparison object.
if isvalid(inv_compare) then
	// Cannot reset comparison object
	return -2
end If

// Reset the comparison object.
inv_compare = anv_compare
return 1
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data