FindNextSIndexRecord finds the next matching record by the secondary index of the open RMS file and stores the record data in the internal query buffer.
Function FindNextSIndexRecord(rmsHandle as Integer, nindex As Integer) As Integer
rmsHandle
RMS file handle
nindex
0 based secondary index number
On success, FindNextSIndexRecord returns 1. If there is no matching record, it returns 0.
Before calling function FindNextSIndexRecord, you must set the query fields data by calling
functions RegisterStringFieldData , RegisterCharFieldData , RegisterIntegerFieldDataRegisterIntegerFieldData,
RegisterLongFieldData , RegisterRealFieldData, RegisterMoneyFieldData,
RegisterDateFieldData , RegisterTimeFieldData or RegisterBoolFieldData depends
on field types.
If you want to let function FindNextSIndexRecord store the specified fields data in the
internal query buffer, you can call RegisterField to add field names to the internal data query
field name list before calling function FindNextSIndexRecord. By default,
FindNextSIndexRecord store all fields’ data in the query buffer.
To get fields data:
If function RegisterField is not called, first call GetFieldCount to get the number of fields in
the RMS file then for each field call GetFieldType and GetStringField, GetCharField,
GetIntegerField, GetLongField, GetRealField, GetMoneyField, GetDateField,
GetTimeField, GetBooleanField depends on the field types
If function RegisterField is called, call FirstRegistedField and NextRegistedField to get
the field names corresponding to the field data in the query buffer and for each field name call
GetFieldTypebyName and GetStringFieldbyName, GetCharFieldbyName,
GetIntegerFieldbyName, GetLongFieldbyName, GetRealFieldbyName,
GetMoneyFieldbyName, GetDateFieldbyName, GetTimeFieldbyName and
GetBooleanFieldbyName depends on the field types.
FindLastSIndexRecord, FindNextSIndexRecord, FindPrevSIndexRecord,
FindFirstSIndexRecord