Page 1 of 1

TMyQuery::InsertID

Posted: Mon 25 Feb 2008 10:58
by JohanW
Hi!

I'm trying to get last inserted id using InsertID. I'm using the Borloand Builder 6.0 version.

A) In TCustomMyDataSet it seems to exist in the MyDac help files
B) In TMyQuery, under TCustomMyDataSet it does not seem to exist in the MyDac help files
C) When editing the source code in the development environment, I can write "myQuery->" to see all the properties/members of an object. InsertID is visible in that list.
D) When compiling, the compiler will not find the InsertID property.

It feels like the property has been added in the TCustomMyDataSet, but TMyQuery hasn't been recompiled using the updated base class? Just guessing..

regards
Johan Wallström
Elektronik Design AB

Posted: Wed 27 Feb 2008 15:37
by Dimon
We could not reproduce the problem.
Try using the following code:

Code: Select all

i = MyQuery1->InsertId;
TMyQuery::InsertID property is not specified in help actually. We have fixed this problem. This fix will be included in the next MyDAC build.

Posted: Thu 28 Feb 2008 12:04
by JohanW
omg, I've misspelled it ^^

To my defense, I got confused when I didn't find it in the help files =D Thanks!!

cheers
Johan