|
of_UnRegisterReportColumn
|
|
Full name
|
pfc_n_cst_lvsrv_datasource.of_UnRegisterReportColumn
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_UnRegisterReportColumn()
|
Name
|
Datatype
|
lnv_empty
|
n_cst_columnattrib[]
|
public function integer of_UnRegisterReportColumn ();//////////////////////////////////////////////////////////////////////////////
// Public Function: of_UnRegisterReportColumn
// 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
//////////////////////////////////////////////////////////////////////////////
// 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.
//////////////////////////////////////////////////////////////////////////////
n_cst_columnattrib lnv_empty[]
// validate required reference
if IsNull(ilv_requestor) or NOT IsValid(ilv_requestor) then return -1
// Delete the current columns in the report view
if ilv_requestor.TotalColumns() > 0 then
if ilv_requestor.DeleteColumns() < 1 then return -1
end if
// Empty the column list array
inv_ColAttrib = lnv_empty
return 1
end function
Name
|
Owner
|
listview.deletecolumns |
listview
|
listview.totalcolumns |
listview
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|