SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎DB Object‎ > ‎DB.sort‎ > ‎

Get


Platform Objects


Description

This will return the current sorting order.


Syntax


Function Get


Parameters


none

Return value


variant - Empty: no sorting order. Otherwise, a two element array: the first element is an array of fields, the second array contains the direction of sorting for the corresponding field. true: ascending order; false: descending order


Example

Sample code

Dim order
order = Sort.Get()
If Not IsEmpty( order ) Then
   Target.Message order(0)(0) & " First field"
   Target.Message order(0)(1) & " Second field"
End If


See also

Platform Objects and Methods
DB.sort
DB.AppendFinish
DB.SetFieldValue
DB.TransactionFinish
Modify