
This method will delete the columns specified in a list in the ListView control.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_ListView_DeleteColumns MyControlReference [as Reference] (list nColIndex1 [as Integer] nColIndex2 [as Integer] nColIndex3 [as Integer] ... nColIndexN [as Integer] ) ) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_ListView_DeleteColumns ProjectFile [as String] DialogName [as String] ControlName [as String] (list nColIndex1 [as Integer] nColIndex2 [as Integer] nColIndex3 [as Integer] ... nColIndexN [as Integer] ) ) |
Please create lists as follows using the list keyword:
(list (list x y ...) (list x y ...) ...)
It seems that ObjectARX does not always handle lists created as follows:
'(x y ...) (x y ...) ...
Copy Code |
|---|
; Delete the second and third column (Odcl_ListView_DeleteColumns MyProject_MyForm_MyControl (list 2 1) ) |
ListView_AddColumns, ListView_CalcColWidth, ListView_DeleteColumn, ListView_GetColumnCount, ListView_GetColumnImage, ListView_GetColumnItems, ListView_GetColWidth, ListView_SetColumnImage, ListView_SetColWidth, ListView_SortNumericItems, ListView_SortTextItems