Dataset.Active

Top  Previous  Next

 

Syntax

function Dataset.Active(ADataset: pointer): boolean

 

Alternative Names

ibec_ds_Close

 

Description

Returns TRUE if the dataset ADataset is currently open, or FALSE otherwise.

 

See also

SELECT ... AS DATASET
Dataset.Close

 

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

    if Dataset.Active(mydata)

    then GUI.ShowMessage('Dataset is open now.');

  finally

    Dataset.Close(mydata);

  end        

  if not Dataset.Active(mydata)

  then GUI.ShowMessage('Dataset is closed now.');

end