CodeCharge Studio

ds->RecordsCount Run-Time Property (PHP)

Applies to

DataSource Object

Type

number

Access

read/write

Syntax

object->ds->RecordsCount [=Value]

Description

Contains the number of records retrieved by DataSource's SELECT SQL query.

Examples

The following example shows how to hide a form if there are no records retrieved from the database.
global $items;
if ($items->ds->RecordsCount == 0)
{
  $items->Visible = false;
}
where $items is the name of the form.

Other examples

Hiding a Grid If No Records are Found

See Also

ds Property
ds->SQL Property
ds->CountSQL Property
ds->Where Property
ds->Order Property


On-line, printable versions and updates