nColumns = MTblGetLastSortDef( hWndTbl, hWndaCols[*], naColSortFlags[*] )

Retrieves the columns and sort flags of the last call of MTblSort, MTblSortRange or MTblSortEx.

Parameters
hWndTbl
Window Handle: Handle of the table

hWndaCols[*]
Array of Window Handle: Handles of the columns sorted.

naColSortFlags[*]
Array of Number: Column sort flags. See MTblSort for further details.

Return
Number: Number of columns if successful or negative if an error occurs

Example
In this example a table is sorted by the last sort definition:
If MTblGetLastSortDef( hWndTbl, hWndaCols, naColSortFlags ) > 0
  Call MTblSort( hWndTbl, hWndaCols, naSortFlags )

See also
Extended sorting

Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation