IsEmpty (Recordset function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
{{Template:Recordset:IsEmpty subtitle}}
[[Category:Recordset methods|IsEmpty property]]
<var>IsEmpty</var> returns a <var>[[Enumerations#Using_Boolean_enumerations|Boolean Enumeration]]</var> whose value is <var>True</var> if the set is empty (has no records) and <var>False</var> if the set has records.
<p>
<var>IsEmpty</var> is a member of the <var>[[Recordset class|Recordset]]</var> class.
</p>


This property returns a
[[Using Boolean enumerations|Boolean enumeration]] whose value is <var>True</var> if the
set is empty (has no records) and <var>False</var> if the set has records.
==Syntax==
==Syntax==
<p class="syntax">%bool = %recSet:IsEmpty
{{Template:Recordset:IsEmpty syntax}}
</p>
 
===Syntax Terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%bool</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>A declared enumeration object of type <var>Boolean</var> to contain the returned value of <var>IsEmpty</var>.</td></tr>
</td></tr>
 
<tr><th>%recSet</th>
<tr><th>recordset</th>
<td>An instantiated <var>Recordset</var> object variable.
<td>An instantiated <var>Recordset</var> object variable.</td></tr>
</table>


</td></tr></table>
==Usage notes==
==Usage Note==
<ul>
<li> Since it is much more efficient than testing the record count for 0, use <var>IsEmpty</var> when you simply need to test for an empty set. Use <var>[[Count (Recordset function)|Count]]</var> only when you need the number of records.
</ul>


Since it is much more efficient than testing the record count for 0,
==See also==
use <var>IsEmpty</var> when you simply need to test for an empty set.
{{Template:Recordset:IsEmpty footer}}
Use <var>[[Count (Recordset property)|Count]]</var> only
when you need the number of records.

Latest revision as of 23:40, 6 November 2012

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