Permanently removes columns from the table.
Syntax
rv = Send_Message(Ctrl, "OLE.DeleteColumns", Column, Count)
Parameters
Parameter | Description |
---|---|
Column | Index to the first column to be deleted |
Count | The number of columns starting at Column to be deleted |
Remarks
The DeleteColumn method permanently removes one or more columns from the table. The Column parameter is the index to the first column to be deleted. You can set the Column parameter to -1 if you wish columns to be deleted from the end. The Count parameter specifies the number of columns to be deleted and must be greater than zero to have any effect.
Example
// Delete the first two columns and the last column rv = Send_Message(Ctrl, "OLE.DeleteColumns", 1, 2) rv = Send_Message(Ctrl, "OLE.DeleteColumns", -1, 1)