
This method will sort the columns in ascending or descending order, based on the column index provided. This method will not keep track of which column was sorted as ascending or descending, this is up to you.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_ListView_SortTextItems MyControlReference [as Reference] nColIndex [as Integer] [Optional] bAscending [as Boolean]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_ListView_SortTextItems ProjectFile [as String] DialogName [as String] ControlName [as String] nColIndex [as Integer] [Optional] bAscending [as Boolean]) |
Copy Code |
|---|
; Sort the third column in ascending order (Odcl_ListView_SortTextItems MyProject_MyForm_MyControl 2 T) |
ListView_AddColumns, ListView_CalcColWidth, ListView_DeleteColumn, ListView_DeleteColumns, ListView_GetColumnCount, ListView_GetColumnImage, ListView_GetColumnItems, ListView_GetColWidth, ListView_SetColumnImage, ListView_SetColWidth, ListView_SortNumericItems