DataSet.isEmpty()

Availability

Flash Player 7.

Edition

Flash MX Professional 2004.

Usage

dataSetInstance.isEmpty()

Returns

A Boolean value.

Description

Method; returns true if the specified DataSet object doesn't contain any items (that is, if dataSet.length == 0).

Example

The following code disables a Delete Record button (not shown) if the DataSet object it applies to is empty:

if (my_ds.isEmpty()) {
    delete_button.enabled = false;
}

See also

DataSet.length


Flash CS3