AddSortField

AddSortField adds a sort field name to the open RMS file for sorting

Syntax

Sub AddSortField(rmsHandle As Integer, fldname As String, isdescending As Integer )

Parameters

rmsHandle

RMS file handle

fldname

Field name

isdescending

Boolean value as integer.  1=TRUE, 0=FALSE

Return Values

No return value

Remarks

Call AddSortFieldAddSortField to add a sort field name to the open RMS file before calling FirstSortRecordFirstSortRecord_NextSortRecord to sort the RMS file.  To sort record by ascending order, set isdescending to 0.  To sort record by descending, set isdescending to 1.

See Also

FirstSortRecordFirstSortRecord_NextSortRecord, NextSortRecordNextSortRecord