Possible bug when I change Field.ReadOnly property ?

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ziclope
Posts: 27
Joined: Fri 24 Feb 2006 11:34

Possible bug when I change Field.ReadOnly property ?

Post by ziclope » Sun 12 Mar 2006 17:28

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

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Mon 13 Mar 2006 13:47

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

Post Reply