IsEmpty (Recordset function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 24: | Line 24: | ||
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, | ||
use <var>IsEmpty</var> when you simply need to test for an empty set. | use <var>IsEmpty</var> when you simply need to test for an empty set. | ||
Use <var>[[Count (Recordset | Use <var>[[Count (Recordset function)|Count]]</var> only | ||
when you need the number of records. | when you need the number of records. |
Revision as of 19:39, 12 April 2011
<section begin=dpl_desc/><section end=dpl_desc/>
IsEmpty is a member of the 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
%bool = %recSet: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.