Sign in Join
FPDoc Onlineexperiment

TSQLStatement.DataSource property

Member of TSQLStatementpublishedIn unit SQLDB

Datasource to copy parameter values from.

Declaration

pascal
property DataSource:;

Description

Datasource can be set to a TDatasource instance. When Execute is called, any unbound parameters remain empty, but if DataSource is set, the value of these parameters will be searched in the fields of the associated dataset. If a field with a name equal to the parameter is found, the value of that field is copied to the parameter. No such field exists, an exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.