TBaseAureliusDataset.SetSourceList Method
Sets an external object list as the source of data for this dataset.
Remarks
The dataset must be closed before calling this method. The base class of objects is inferred from the generic type parameter of the list. After reopening, records are created for each existing element.
Syntax
Unit: Aurelius.Bind.BaseDataset
procedure TBaseAureliusDataset.SetSourceList(SourceList: TObject; OwnList: Boolean = False);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| SourceList | TObject | The object list to use as data source. Must be a generic list whose element type is a class (e.g., TList<TCustomer>). |
|
| OwnList | Boolean | Optional: Default value is False When True, the dataset takes ownership and destroys SourceList when the dataset is closed. Defaults to False. |