CurrentRecord (RecordsetCursor function)
Create Record object from current record in the set (RecordsetCursor class)
CurrentRecord cancels the request if it cannot create a Record object because there is no current record.
Syntax
%record = recordsetCursor:CurrentRecord[( [lockStrength], - [LoopLockStrength= lockStrength])]
Syntax terms
%record | A Record object variable for the assignment of the current record in recordsetCursor's record set. record must have the same file or group context as recordsetCursor. |
---|---|
recordsetCursor | A RecordsetCursor object. |
lockStrength | A Lockstrength enumeration value: None, Share, or Exclusive. These correspond to standard Model 204 record-locking levels, as described below. The default lock strength is Share, matching the locking behavior of a User Language For Record Number statement.
|
LoopLockStrength | The lock strength to be used for For Record loops on the Record object. This is an optional, name required, parameter, and it defaults to None. Its possible values are described above. |
Usage notes
- CurrentRecord is valid only if cursor state is HasRecord.
- The default lock strength of the new record object is Share.