IsEmpty (Recordset function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
m (→Usage Note) |
||
Line 16: | Line 16: | ||
</td></tr></table> | </td></tr></table> | ||
==Usage | ==Usage notes== | ||
Since it is much more efficient than testing the record count for 0, | Since it is much more efficient than testing the record count for 0, | ||
Line 22: | Line 22: | ||
Use <var>[[Count (Recordset function)|Count]]</var> only | Use <var>[[Count (Recordset function)|Count]]</var> only | ||
when you need the number of records. | when you need the number of records. | ||
==See also== | ==See also== | ||
{{Template:Recordset:IsEmpty footer}} | {{Template:Recordset:IsEmpty footer}} |
Revision as of 19:35, 15 April 2011
Is Recordset empty? (Recordset class)
This property returns a
Boolean enumeration whose value is True if the
set is empty (has no records) and False if the set has records.
Syntax
%boolean = recordset:IsEmpty
Syntax terms
%boolean | A declared enumeration object of type Boolean to contain the returned value of IsEmpty. |
---|---|
recordset | An instantiated Recordset object variable. |
Usage notes
Since it is much more efficient than testing the record count for 0, use IsEmpty when you simply need to test for an empty set. Use Count only when you need the number of records.