|
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)
|
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
|
systemfunctions.isnull |
systemfunctions
|