of_setbalance


pfcapsrv.pbl   >   pfc_n_cst_treenode   >   of_setbalance   

Full name pfc_n_cst_treenode.of_setbalance
Access public
Extend of integer
Return value integer
Prototype public function integer of_setbalance(integer)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setbalance (integer ai_balance);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_setbalance
//
//	Access:  public
//
//	Arguments :  None
//
//	Returns:  integer
//	1 : success
// -1 : input value out of range
//
//	Description:  
//	Set the value of ii_balance. Balance can only be -1,0 or +1
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

if IsNull(ai_balance) or ai_balance< -1 or ai_balance > 1 then return -1

ii_balance = ai_balance
return 1
end function

     
Name Owner
pfc_n_cst_tree.of_addnode pfc_n_cst_tree
pfc_n_cst_tree.of_balanceleft pfc_n_cst_tree
pfc_n_cst_tree.of_balanceright pfc_n_cst_tree
pfc_n_cst_treenode.of_copyto pfc_n_cst_treenode

     
Name Owner
systemfunctions.isnull systemfunctions

     
Full name
No Data

     
Name Scope
No Data