Page 1 of 1

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

Posted: Fri 17 Feb 2006 18:22
by Guest
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

Posted: Fri 17 Feb 2006 19:17
by swierzbicki
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;