[Opensource] Accessing auto-inc key fields after add()

Eddie Lewis ELewis at copyright.com.au
Thu Nov 7 14:46:24 PST 2002


Yes, the field is populated (expresso 4.02) with the key value after the
insert. so simply perform the add, then use getField("idfield") to get the
value after you perform the add().

-----Original Message-----
From: Tayfun Elmas [mailto:tayfunelmas at yahoo.com]
Sent: Friday, 8 November 2002 12:30 AM
To: opensource at jcorporate.com
Subject: [Opensource] Accessing auto-inc key fields after add()


Hi,
If my DBObject has a key as an auto-inc field, how can
i access this key after adding the DBObject to the
database, namely ,is it set after the add() operation
and can i get it with getField()?

Thanks...

=====

####################################
TAYFUN ELMAS
 #_#_#   elmas at bilmuh.ege.edu.tr
 (`|´)   telmas at bornova.ege.edu.tr
__)W(__  tayfunelmas at yahoo.com
Ege Üniversitesi
Bilgisayar Mühendisligi
35100 Bornova - IZMIR
####################################


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20021108/66d3b4b2/attachment-0002.htm


More information about the Opensource mailing list