of_getregisterable


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_sort   >   of_getregisterable   

Full name pfc_n_cst_dwsrv_sort.of_getregisterable
Access public
Extend of integer
Return value integer
Prototype public function integer of_getregisterable(ref string[])

Name Datatype
No Data

Name Datatype
li_i integer
li_numcols integer
li_numcomputes integer
ls_computes string[]
ls_sortcolumns_all string[]

public function integer of_getregisterable (ref string as_allcolumns[]);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_GetRegisterable
//
//	Access:    		Public
//
//	Arguments:
//   as_allcolumns[]		Passed by reference, that will hold all the columns 
//			(including computed columns) that the service can use to perform sorts.
//
//	Returns:   		Integer
//	# of entries
// -1 if an error occurs
//
//	Description:  
//	To get the list of all the columns (including computed columns) that the service
//	can use to perform sorts.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

integer	li_numcols
integer	li_numcomputes
integer	li_i
string	ls_sortcolumns_all[]
string	ls_computes[]

// Get all the column names on the datawindow.
li_numcols = of_GetObjects(ls_sortcolumns_all, "column", "*", ib_visibleonly) 

// Get all the computed column names on the datawindow and add them to the array.
li_numcomputes =  of_GetObjects( ls_computes, "compute", "*", ib_visibleonly)
FOR li_i = 1 to li_numcomputes
	li_numcols++
	ls_sortcolumns_all[li_numcols] = ls_computes[li_i] 
NEXT 

as_allcolumns = ls_sortcolumns_all
Return UpperBound(as_allcolumns)
end function

     
Name Owner
pfc_u_tabpg_dwproperty_srvsort.pfc_propertypopulate pfc_u_tabpg_dwproperty_srvsort

     
Name Owner
systemfunctions.upperbound systemfunctions
pfc_n_cst_dwsrv.of_getobjects pfc_n_cst_dwsrv

     
Full name
No Data

     
Name Scope
No Data