of_addcolumn


pfcmain.pbl   >   pfc_u_lv   >   of_addcolumn   

Full name pfc_u_lv.of_addcolumn
Access public
Extend of integer
Return value integer
Prototype public function integer of_addcolumn(string)

Name Datatype
No Data

Name Datatype
ls_header string

public function integer of_addcolumn (string as_columnname);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_AddColumn
//
//	Access:  public
//
//	Arguments:
//	as_ColumnName			The column in the DataWindow object to add as a column in
//									the ListView. 
//
//	Returns:		Integer
//					The index of the column if added successfully, -1 if an error occurred
//
//	Description:	Add a column to the ListView control.  It will be displayed in Report View only.
//
//						This function overrides the real of_AddColumn to allow the column width, alignment
//						and label to be determined by the attributes of the column in the DataWindow.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//	5.0.02   Allow function to use the default header suffix as specified in the base DW service.
//		Previously, the function always expected "_t" suffix for column headers in the datawindow.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

string	ls_header

// Get the header of the column in the DataWindow
ls_header = ids_source.inv_base.of_GetHeaderName (as_columnname)

// Add the column to the ListView
return of_AddColumn (as_columnname, ls_header)

end function

     
Name Owner
pfc_u_lv.of_addcolumns pfc_u_lv
pfc_u_lv.of_setdatasource pfc_u_lv

     
Name Owner
pfc_n_cst_dssrv.of_getheadername pfc_n_cst_dssrv
pfc_u_lv.of_AddColumn pfc_u_lv

     
Full name
No Data

     
Name Scope
No Data