Page 1 of 1

Keygenerator

Posted: Sun 15 Apr 2007 13:26
by Archer66
Hi,

How I use keygenerator in INSERT INTO ?

Posted: Mon 16 Apr 2007 13:26
by Alex
You should set TIBCQuery.KeyGenerator property with generator name, and TIBCQuery.KeyFields with the field name that accepts generator's value. Also pay attention to the TIBCQuery.GeneratorMode property which helps you to control when a new value will be generated/inserted.

Please see the following IBDAC help topics for more information:
TCustomIBCDataSet.KeyGenerator
TCustomIBCDataSet.KeyFields
TCustomIBCDataSet.GeneratorMode