Page 1 of 1

Possible bug when I change Field.ReadOnly property ?

Posted: Sun 12 Mar 2006 17:28
by ziclope
Hello,

When I am using the following code an exception is raised:
"DataSet is not in Insert or edit mode"

DataSet->Insert();

pAutoInc->ReadOnly = false; State changes to dsBrowse
pAutoInc->Text = --DataSet->Tag;
pAutoInc->ReadOnly = true;

Is it a bug ? with ADOExpress components it doesn´t happen

Regards

Posted: Mon 13 Mar 2006 13:47
by Antaeus
We tested the code you have posted. It seems to work fine. The value was assigned successfully without any exception. Please send us (mydac*crlab*com) a complete small sample to demonstrate this problem, including script to create and fill table.

Also supply us following information
- Exact version of C++ Builder
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor
- Exact version of MySQL server and MySQL client. You can see it in Info sheet of TMyConnection Editor