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
TMyQuery::InsertID
We could not reproduce the problem.
Try using the following code:
TMyQuery::InsertID property is not specified in help actually. We have fixed this problem. This fix will be included in the next MyDAC build.
Try using the following code:
Code: Select all
i = MyQuery1->InsertId;