HELP !! If I want to push data from field to keep in variable of string.

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Guest

HELP !! If I want to push data from field to keep in variable of string.

Post by Guest » Fri 17 Feb 2006 18:22

If I want to push data from field to keep in variable of string. Could you tell me and give me some example. PLEASE!!

thank you

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Fri 17 Feb 2006 19:17

I don't really understand, but given what you said, i'll proceed like this :

Code: Select all

Var MyString : String;
Begin
   MyQuery.open;
   ...
   [b]MyString  [/b]:= MyQuery.FieldByname('[b]FieldName[/b]').asString;
   ...
   MyQuery.close;
End;

Post Reply