Trying to modify read-only field
Posted: Fri 24 Aug 2012 20:39
Hi,
I have a same problem with topic http://forums.devart.com/viewtopic.php?t=18131, but, I'm using Interbase Data Access, and all the time i want to edit a record in my client data set (TClientDataSet) the application show's the message "Trying to modify read-only field.". I dont intend to edit the record to save on databse, I only want to edit record and post in memory.
Can you please help me?
My project works like this:
-> TIBCConnection->TBCQuery->TDataSetProvider->TClientDataSet
and my function is:
Really thanks.
I have a same problem with topic http://forums.devart.com/viewtopic.php?t=18131, but, I'm using Interbase Data Access, and all the time i want to edit a record in my client data set (TClientDataSet) the application show's the message "Trying to modify read-only field.". I dont intend to edit the record to save on databse, I only want to edit record and post in memory.
Can you please help me?
My project works like this:
-> TIBCConnection->TBCQuery->TDataSetProvider->TClientDataSet
and my function is:
Code: Select all
function ReturnData(sSQL: string): OleVariant
begin
clientDataSet.Close;
ibcquery1.SQL.Clear;
ibcquery1.SQL.Add(sSQL);
clientDataSet.Open;
result := clientdataset.Data;
end;