Cursor (SortedRecordset function): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Template:SortedRecordset:Cursor subtitle}} | |||
==Syntax== | ==Syntax== | ||
{{Template:SortedRecordset:Cursor syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%recordsetCursor</th> | ||
<td>A declared <var>RecordsetCursor</var> object, to which <var>Cursor</var> returns an instance of a <var>RecordsetCursor</var> object, if | <td>A declared <var>RecordsetCursor</var> object, to which <var>Cursor</var> returns an instance of a <var>RecordsetCursor</var> object, if <var class="term">sortedRecordset</var> has at least one record. If <var class="term">sortedRecordset</var> has no records, <var>Cursor</var> returns a <var>Null</var> object. | ||
</td></tr> | </td></tr> | ||
<tr><th> | <tr><th>sortedRecordset</th> | ||
<td>A reference to an instance of a <var>SortedRecordset</var> object. | <td>A reference to an instance of a <var>SortedRecordset</var> object. | ||
</td></tr></table> | </td></tr></table> | ||
==Usage | ==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 21: | ||
positioned on the first record in the set. | positioned on the first record in the set. | ||
</ul> | </ul> | ||
==See also== | |||
{{Template:SortedRecordset:Cursor footer}} |
Latest revision as of 01:32, 29 April 2011
Instantiate a RecordsetCursor for this SortedRecordset (SortedRecordset class)
Syntax
%recordsetCursor = sortedRecordset:Cursor
Syntax terms
%recordsetCursor | A declared RecordsetCursor object, to which Cursor returns an instance of a RecordsetCursor object, if sortedRecordset has at least one record. If sortedRecordset has no records, Cursor returns a Null object. |
---|---|
sortedRecordset | 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.