AddSortField adds a sort field name to the open RMS file for sorting
Sub AddSortField(rmsHandle As Integer, fldname As String, isdescending As Integer )
rmsHandle
RMS file handle
fldname
Field name
isdescending
Boolean value as integer. 1=TRUE, 0=FALSE
No return value
Call AddSortField to add a sort field name to the open RMS file before calling FirstSortRecord to sort the RMS file. To sort record by ascending order, set isdescending to 0. To sort record by descending, set isdescending to 1.
FirstSortRecord , NextSortRecord