Subject | [IBO] How to get the record id that was just stored with a query |
---|---|
Author | Antti Kurenniemi |
Post date | 2005-06-29T17:49:55Z |
Hello all.
If I store a record using just a query (data generated in code, no visual
components involved), and there is a generator in the FB database that gives
the record a new ID, is there a "clean" way to get the newly generated ID
value back? Hackable with an extra field, setting it to some identifiable
value and then querying that value back, but that seems a bit dumb.
This is in Delphi 2005, using IBO 4.5 and FB 1.5.
TIA,
Antti Kurenniemi
If I store a record using just a query (data generated in code, no visual
components involved), and there is a generator in the FB database that gives
the record a new ID, is there a "clean" way to get the newly generated ID
value back? Hackable with an extra field, setting it to some identifiable
value and then querying that value back, but that seems a bit dumb.
This is in Delphi 2005, using IBO 4.5 and FB 1.5.
TIA,
Antti Kurenniemi