Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages
Started by Reynold M. de Guzman
Thu, 27 Sep 2001 15:35
autoincrement values
Author: Reynold M. de Guzman
Date: Thu, 27 Sep 2001 15:35
Date: Thu, 27 Sep 2001 15:35
17 lines
1239 bytes
1239 bytes
Hello, I have a field that is set to autoincrement but I also need to get that value right after the post to use it in another part of the program. How do I find what the value is? I've tried to look for it in the BeforePost, AfterPost, and FieldByName but it seems to give me wrong results. Thanks. Reynold --- Reynold M. de Guzman deguzman@offworldcolony.com
Re: autoincrement values
Author: Scott Metzger
Date: Mon, 01 Oct 2001 13:50
Date: Mon, 01 Oct 2001 13:50
5 lines
1222 bytes
1222 bytes
> Try using TDataset->InsertRecord(blah blah).
Your newly inserted record will be the present record and then you can
use TDataset->FieldByName("my field")->AsInteger to get the
autoincrement value.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads