The function GetCustomDataSet creates an empty dataset with either:

  • Columns with names as specified in aFieldNames, and default field type and size of string(255); or

  • Columns with names, types, and sizes as specified in aFieldDefinitions.

aDataSet should be one of the Global Datasets (if within a Map), or a local dataset that has been created with TFloClientDataset.Create (if within a Custom Script or a Map).

The dataset starts empty and you can add records to it as necessary.

Refer to Dataset Class (TDataset) for information about what you can do with the dataset.

The accepted values for column type are: string, integer, boolean, memo, date, time, datetime.

Declaration: procedure GetCustomDataSet(const aDataSet : TFloClientDataSet; const aFieldNames : array of string);

procedure GetCustomDataSet(const aDataSet : TFloClientDataSet; const aFieldDefinitions : array of string);