IsEmpty (Recordset function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (fix "using boolean enumerations" link)
m (fix "using boolean enumerations" link)
Line 7: Line 7:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%boolean</th>
<tr><th>%boolean</th>
<td>A declared enumeration object of type <var>[[Boolean]]</var> to contain the returned value of <var>IsEmpty</var>.</td></tr>
<td>A declared enumeration object of type <var>[[Enumerations#Using Boolean enumerations|Boolean]]</var> to contain the returned value of <var>IsEmpty</var>.</td></tr>
<tr><th>recordset</th>
<tr><th>recordset</th>
<td>An instantiated <var>Recordset</var> object variable.
<td>An instantiated <var>Recordset</var> object variable.

Revision as of 20:32, 24 May 2011

Is Recordset empty? (Recordset class)

IsEmpty 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.

See also