of_deletecolumns


pfcmain.pbl   >   pfc_u_lv   >   of_deletecolumns   

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

Name Datatype
No Data

Name Datatype
ls_empty string[]

public function integer of_deletecolumns ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_DeleteColumns
//
//	Access:		public
//
//	Arguments:	None.
//
//	Returns:		Integer
//					1 if successful, -1 if an error occurred
//
//	Description:	Delete all columns in the ListView control and reset the internal column arrays.
//						Columns are displayed in Report View only.
//
//						NOTE:  If you perform this function on a populated listview you
//						should call of_refresh to refresh the data view if needed
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0.03   Initial version
//	6.0.01	Add column count check
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_empty[]

// Delete the current columns in the report view
If this.totalcolumns() > 0 then
	if this.deletecolumns() < 1 then return -1
End If

// Empty the column list array
is_Columns = ls_Empty
is_ColType = ls_Empty
is_ColFormat = ls_Empty

return 1
end function

     
Name Owner
pfc_u_lv.of_setdatasource pfc_u_lv

     
Name Owner
listview.deletecolumns listview
listview.totalcolumns listview

     
Full name
No Data

     
Name Scope
No Data