re : Updating TQuery to TADOQuery

[email protected]
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Hello ...
Mr.Angus said :
{I'm updating some older code to replace the BDE with ADO and am having a few
TADOQuery problems.
First  and foremost, what is the ADO equivalent of

varname:=Query1.FieldByName('name').text;

It should be simple but the ADO help in D5 is a bit obtuse for me.
Regards
Angus
}

will ... you can use this :
varname:=ADOQuery1.FieldByName('name').asstring;
where varname is a string variable ...
you can use :
VariableName:=ADOQuery1.FieldByName('name').value;
while VariableName is a variable compatible with the type of the colom 'Nam' ...

Good Luck

         Tameem Bahri (Dr.T_

....................................
Get your own free email account from
http://www.popmail.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges & Refill Kits for Your Epson at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5705&lp=home/epson.asp
http://us.click.yahoo.com/brYXfA/_xWGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.