IsEmpty (SortedRecordset function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
|||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Template:SortedRecordset:IsEmpty subtitle}} | |||
<var>IsEmpty</var> returns a <var>[[Enumerations#Using_Boolean_enumerations|Boolean Enumeration]]</var> whose value is <code>True</code> if the set is empty (has no records), and is <code>False</code> if the set has records. | |||
==Syntax== | |||
{{Template:SortedRecordset:IsEmpty syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%boolean</th> | ||
<td> | <td>An <var>Enumeration</var> object of type <var>Boolean</var> to contain the returned value of <var>IsEmpty</var>.</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> | |||
==Usage Note== | ==Usage Note== | ||
<ul> | <ul> | ||
<li>For convenience, | <li>For convenience, use <var>IsEmpty</var> when you simply need to test for an empty set of records; it is more efficient as testing the record <var>Count</var> for 0. Use the <var>[[Count (SortedRecordset property)|Count]]</var> property when you need the number of records. | ||
use <var>IsEmpty</var> when you simply need to test for an empty set of records; | |||
it is | |||
Use the <var>[[Count (SortedRecordset property)|Count]]</var> property | |||
when you need the number of records. | |||
</ul> | </ul> | ||
==See also== | |||
{{Template:SortedRecordset:IsEmpty footer}} |
Latest revision as of 21:40, 12 November 2012
Is this SortedRecordset empty? (SortedRecordset class)
IsEmpty returns a Boolean Enumeration whose value is True
if the set is empty (has no records), and is False
if the set has records.
Syntax
%boolean = sortedRecordset:IsEmpty
Syntax terms
%boolean | An Enumeration object of type Boolean to contain the returned value of IsEmpty. |
---|---|
sortedRecordset | A reference to an instance of a SortedRecordset object. |
Usage Note
- For convenience, use IsEmpty when you simply need to test for an empty set of records; it is more efficient as testing the record Count for 0. Use the Count property when you need the number of records.