IsEmpty (Recordset function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
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]]
<p>
<var>IsEmpty</var> is a member of the <var>[[Recordset class|Recordset]]</var> class.
</p>


This property returns a
This property returns a
Line 9: Line 5:
set is empty (has no records) and <var>False</var> if the set has records.
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>%bool</th>
Line 26: Line 21:
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==
{{Template:Recordset:IsEmpty footer}}

Revision as of 19:33, 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

%bool A declared enumeration object of type Boolean to contain the returned value of IsEmpty.
%recSet An instantiated Recordset object variable.

Usage Note

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