Cursor (SortedRecordset function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Template:SortedRecordset:Cursor subtitle}}
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
[[Category:SortedRecordset methods|Cursor constructor]]
<p>
<var>Cursor</var> is a member of the <var>[[SortedRecordset class|SortedRecordset]]</var> class.
</p>


Instantiates a <var>RecordsetCursor</var> object for a
Instantiates a <var>RecordsetCursor</var> object for a
particular instance of a <var>SortedRecordset</var> object.
particular instance of a <var>SortedRecordset</var> object.
==Syntax==
==Syntax==
<p class="syntax">%rscursor = %srecs:Cursor
{{Template:SortedRecordset:Cursor syntax}}
</p>
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 20: Line 14:


</td></tr></table>
</td></tr></table>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>You can have as many cursors as you want for a record set.
<li>You can have as many cursors as you want for a record set.
Line 29: Line 23:
positioned on the first record in the set.
positioned on the first record in the set.
</ul>
</ul>
==See also==
{{Template:SortedRecordset:Cursor footer}}

Revision as of 01:24, 29 April 2011

Instantiate a RecordsetCursor for this SortedRecordset (SortedRecordset class)


Instantiates a RecordsetCursor object for a particular instance of a SortedRecordset object.

Syntax

%recordsetCursor = sortedRecordset:Cursor

Syntax terms

%rscursor A declared RecordsetCursor object, to which Cursor returns an instance of a RecordsetCursor object, if %srecs has at least one record. If %srecs has no records, Cursor returns a Null object.
%srecs A reference to an instance of a SortedRecordset object.

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