Board index » delphi » Getting a Data out of A TDbEdit

Getting a Data out of A TDbEdit


2008-01-31 07:31:11 AM
delphi214
I'm using D2007. I have a panel with 8 TDbEdits. Using Controls[x] I can
go through all the components on the panel fine. However, what I have not
been able to figure out is how to access the data of the TDbEdit. I keep
getting an access violation error.
Thanks for the assist.
Jeff
 
 

Re:Getting a Data out of A TDbEdit

Get the data from the DataSet component field object, not from the
DBEdit. For example
X := DataSet.FieldByName('TheFieldName').AsString;
--
Bill Todd (TeamB)