On Jun 14, 2006, at 1:19 PM, Henning Hraban Ramm wrote:
- how do I get the index number of a new entry
I'm not sure what you're looking for. Do you mean if you add a
new record, how do you get the PK?
I think so, even if I don't know what you mean with PK. ;-)
PK == 'Primary Key'. Based on your next sentence, it is what you are
calling a 'main index'.
E.g. my book database has an auto-increment integer field as main
index; if I add a new book, I need this number to write it in the
book. Is there a better way than a select after the insert? (Or
what's the dabo way?)
The auto-increment value isn't created until the new record is
saved. As soon as the record is saved, though, Dabo retrieves this
newly-created value and places it into the value for that field in
the new record. So you can simply refer to that field, or, if it's
displayed on the form, it should be refreshed automatically.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users