Alternatively you can check if IDBStatement is a IDBDatasetStatement. If it is, you can get the underlying TDataset which then you can use the regular dataset methods like FindField.
Alternatively you can check if IDBStatement is a IDBDatasetStatement. If it is, you can get the underlying TDataset which then you can use the regular dataset methods like FindField.