CurrentRecord (RecordsetCursor function): Difference between revisions
Jump to navigation
Jump to search
m (Created page with "<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span> CurrentRecord function <p> <var>CurrentRecord</var> is a m...") |
m (→Usage Notes) |
||
Line 30: | Line 30: | ||
<ul> | <ul> | ||
<li><var>CurrentRecord</var> is valid only if cursor state is <var>HasRecord</var>. | <li><var>CurrentRecord</var> is valid only if cursor state is <var>HasRecord</var>. | ||
<li>The default lock strength of the new record object | <li>The default lock strength of the new record object is <var>Share</var>. | ||
<li>For more information about enumerations, see [[Enumerations]]. | <li>For more information about enumerations, see [[Enumerations]]. | ||
</ul> | </ul> |
Revision as of 21:23, 26 April 2011
<section begin=dpl_desc/><section end=dpl_desc/>
CurrentRecord is a member of the RecordsetCursor class.
This method returns a record object representing the current record in the set, or it cancels the request if there is no current record.
Syntax
%rec = %rscursor:CurrentRecord( [lockstr] - [, LoopLockStrength=lockstr] )
Syntax terms
%rec | A declared Record object variable for the assignment of the current record in %rscursor's record set. The variable must have the same file or group context as %rscursor. |
---|---|
%rscursor | An instantiated RecordsetCursor object. |
lockstr | The value of a Lockstrength enumeration: 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.
- For more information about enumerations, see Enumerations.