of_setsorted


pfcapsrv.pbl   >   pfc_n_cst_list   >   of_setsorted   

Full name pfc_n_cst_list.of_setsorted
Access public
Extend of integer
Return value integer
Prototype public function integer of_setsorted(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setsorted (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:
//	of_SetSorted
//
//	Access:
//	Public
//
//	Arguments:
//	ab_switch  State of option
//
//	Returns: integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	Called to make list sorted or not sorted.
//	Only applicable to empty lists.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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 parameters.
if IsNull(ab_switch) then
	return -1
end if

If ib_sorted = ab_switch Then
	Return 1
End If

//	Only applicable to empty lists.
If of_IsEmpty() Then 
	ib_sorted = ab_switch
	Return 1
End If

Return -1
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
pfc_n_cst_linkedlistbase.of_isempty pfc_n_cst_linkedlistbase

     
Full name
No Data

     
Name Scope
No Data