Page 1 of 1

Working With TEdit...

Posted: Wed 01 Feb 2006 15:59
by haci
Hi, i have a MSQuery1, and MSSql1. If i use with TDBEdit it's ok, it's working. But if i use with TEdit, it can't run. How can i call MSQuery1's update, when i write data to TEdit field, to call MSSql1...

Thank you...

Posted: Mon 06 Feb 2006 11:59
by Ikar
Using TDBEdit is more preferable but if you want to use TEdit you can use something like this

Code: Select all

MSQuery1.Edit;
MSQuery1.Fields[0].AsString := Edit1.Text;
MSQuery1.Post
You can read details in Delphi help