of_SetXposColumn


pfcapsrv.pbl   >   pfc_n_cst_lvsrv_datasource   >   of_SetXposColumn   

Full name pfc_n_cst_lvsrv_datasource.of_SetXposColumn
Access public
Extend of integer
Return value integer
Prototype public function integer of_SetXposColumn(string)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_SetXposColumn (string as_column);//////////////////////////////////////////////////////////////////////////////
//	Public Function:	of_SetXposColumn
//	Arguments:		as_column	column in datasource to be used for defining x position of the item
//	Returns:			integer
//					 	1 = success
//						-1 = failure
//	Description:	Sets the column name used from the datasource as the item x coordinate
//						Note:  The datasource(dataobject) must be set first before calling this function
//////////////////////////////////////////////////////////////////////////////
//	Rev. History:	Version
//						6.0   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 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(as_column) then return -1

// Check to make sure column is valid for the dataobject
if Trim(as_column) <> "" and inv_Attrib.ids_Source.Describe(as_column + ".Band") = "!" then return -1

inv_Attrib.is_XPosColumn = as_column

return 1
end function

     
Name Owner
No Data

     
Name Owner
datastore.describe datastore
systemfunctions.isnull systemfunctions
systemfunctions.trim systemfunctions

     
Full name
No Data

     
Name Scope
No Data