Determining AUTO_INCREMENT field in dataset
Determining AUTO_INCREMENT field in dataset
I see how to use TCustomMyDataSet.InsertID to determine the last AUTO_INCREMENT value inserted in a dataset. Is there a way I can determine, generically, which column that AUTO_INCREMENT value is in?
Re: Determining AUTO_INCREMENT field in dataset
You can define whether a field is auto-incremental in the following way:
Code: Select all
if MyQuery.GetFieldDesc('YourField').IsAutoIncrement then
// ... Field is AutoIncrement