CentauriAudio
Programmer
Hi all - first post here and relatively new to Delphi...
Problem I have is:
Using BDE with TTable & TDataSource components linked to dBase file in Delphi6. I am reading in field data from a particular record to an array of edit boxes using
For i:= 0 to 26 do
CustEdit.Text:=DataModule1.TableCust.Fields.DisplayText;
which works well. I am setting this up so that when the user performs an edit, nothing gets written back to the table until the completed record edit is verified by an ok button. To write this I am using
DataModule1.TableCust.Edit;
For c:= 1 to 26 do
begin
DataModule1.TableCust.Fields[c].Value:= CustEdit[c].Text;
end;
DataModule1.TableCust.Post;
however the data is not being written to the database. The various readonly properties are set to false, and no runtime error is generated. Anyone got any ideas ?
I also note that TTable should have a State property, but one does not exist. Could this be something to do with dBase files? Would Paradox files be better?
Thanks in anticipation
Problem I have is:
Using BDE with TTable & TDataSource components linked to dBase file in Delphi6. I am reading in field data from a particular record to an array of edit boxes using
For i:= 0 to 26 do
CustEdit.Text:=DataModule1.TableCust.Fields.DisplayText;
which works well. I am setting this up so that when the user performs an edit, nothing gets written back to the table until the completed record edit is verified by an ok button. To write this I am using
DataModule1.TableCust.Edit;
For c:= 1 to 26 do
begin
DataModule1.TableCust.Fields[c].Value:= CustEdit[c].Text;
end;
DataModule1.TableCust.Post;
however the data is not being written to the database. The various readonly properties are set to false, and no runtime error is generated. Anyone got any ideas ?
I also note that TTable should have a State property, but one does not exist. Could this be something to do with dBase files? Would Paradox files be better?
Thanks in anticipation