Arbortext Command Language > Functions by Alphabetical Listing > dlgitem_get_table_sort
  
dlgitem_get_table_sort
dlgitem_get_table_sort(window, dlgitem[, sortorder])
Returns the index of the column on which the table is sorted.
window — The window identifier of the window containing the table.
dlgitem — The value of the control's id attribute.
sortorder — The value of the sortorder is set by the function. It reflects the current sort order of the current sorted column. If the value of the sortorder is 0, the column is sorted in ascending order. Otherwise, the column is sorted in descending order.
If dlgitem does not refer to a table, $ERROR is set and -1 is returned. If the table is not sorted, 0 is returned. Otherwise, the index of the column on which the table is sorted is returned.
Related Topics
dlgitem_set_table_sort function