Cursor (Recordset function)

From m204wiki
Revision as of 19:54, 7 February 2012 by Dme (talk | contribs) (→‎Syntax terms)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Create a RecordsetCursor object from a Recordset (Recordset class)


Syntax

%recordsetCursor = recordset:Cursor[( [LoopLockStrength= lockStrength])]

Syntax terms

%recordsetCursor The result RecordsetCursor object, if the method object recordset has at least one record. If recordset has no records, Cursor returns a Null object.
recordset A Recordset object.
LoopLockStrength The lock strength to be used for For Record At loops on the cursor. This is an optional, name required, parameter, available in Sirius Mods 7.0 and later. It defaults to None. See "LoopLockStrength for RecordsetCursors".

Usage notes

  • You can have as many cursors as you want for a record set.
  • To test for an empty record set, use IsEmpty, which is much more efficient than testing the record Count for 0,
  • The instantiated RecordsetCursor is automatically positioned on the first record in the set.

See also