of_sort


pfcapsrv.pbl   >   pfc_n_cst_mru   >   of_sort   

Full name pfc_n_cst_mru.of_sort
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_sort(string)

Name Datatype
No Data

Name Datatype
No Data

protected function integer of_sort (string as_sort);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_Sort
//
//	Access:		protected
//
//	Arguments:
//	as_sort		String to sort the MRU datastore with.  
//
//	Returns:		integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	Sort MRU datastore
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// check arguments
if isnull(as_sort) then return -1

// set the sort order
ids_mrukeys.setsort(as_sort)

// sort the datastore
return ids_mrukeys.sort()

end function

     
Name Owner
pfc_n_cst_mru.of_save pfc_n_cst_mru
pfc_n_cst_mru.of_additem pfc_n_cst_mru
pfc_n_cst_mru.of_restore pfc_n_cst_mru

     
Name Owner
datastore.setsort datastore
datastore.sort datastore
systemfunctions.isnull systemfunctions

     
Full name
No Data

     
Name Scope
No Data