Keygenerator

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Archer66
Posts: 17
Joined: Wed 11 Apr 2007 14:24

Keygenerator

Post by Archer66 » Sun 15 Apr 2007 13:26

Hi,

How I use keygenerator in INSERT INTO ?

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Mon 16 Apr 2007 13:26

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

Post Reply