Important: The information in this document is obsolete and should not be used for new development.
LDelColumn
You can use theLDelColumnprocedure to delete one or more columns from a list.
PROCEDURE LDelColumn (count: Integer; colNum: Integer; lHandle: ListHandle);
count- The number of columns to delete, or 0 to delete all columns.
colNum- The column number of the first column to delete.
lHandle- The list from which to delete the columns.
DESCRIPTION
TheLDelColumnprocedure deletes the number of columns specified by thecountparameter, starting at the column specified by thecolNumparameter.If the column specified by
colNumis invalid, then nothing is done.Your application can quickly delete all columns from a list (and thus delete all cell data) simply by setting the
countparameter to 0. The number of rows is left unchanged. Your application can achieve the same effect by setting thecolNumparameter tolHandle^^.dataBounds.leftand setting thecountparameter to a value greater thanlHandle^^.dataBounds.right - lHandle^^.dataBounds.left.Columns whose column numbers are initially greater than
colNumhave their column numbers decreased bycount.If the automatic drawing mode is enabled and one or more of the columns deleted by
LDelColumnare visible, then the list (including its scroll bars) is updated.SPECIAL CONSIDERATIONS
You should not call theLDelColumnprocedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLDelColumnprocedure are
Trap macro Selector _Pack0 $0020