Dataset.RecordCount

Top  Previous  Next

 

Syntax

function Dataset.RecordCount(ADataset: pointer): large-integer

 

Alternative Names

ibec_ds_RecordCount

 

Description

Returns the number of rows in dataset ADataset. This is only valid when all rows have been fetched.

 

See also

Dataset.Next
Dataset.Last

 

Example

execute udsblock()

as

begin

  /* create the data set */

  select employeeid, emp_name, salary, bonus_perc

  from test_data order by employeeid

  as dataset mydata;

  try 

    Dataset.Last(mydata);

 

    rc = Dataset.RecordCount(mydata);

    GUI.ShowMessage('Number of records in the dataset: ' || rc);

  finally

    Dataset.Close(mydata);

  end        

end