Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread field values
Sun, Jan 13 2008 12:00 PMPermanent Link

"Andrej Bivic"
How do I get a value of a field of a query with something like
"FieldByName"?
please advise

Sun, Jan 13 2008 2:45 PMPermanent Link

Ralf Graap
Try this:

qry := TDBISAMQuery.Create(nil);
try
  qry.SQL.Add('select abc from yxz');
  qry.open;
  while not qry.Eof do
  begin
    ShowMessage('Value of Field abc: '+qry.FieldByName('abc').AsString);
    qry.Next;
  end;
finally
  FreeAndNil(qry);
end;

Ralf

Andrej Bivic schrieb:
> How do I get a value of a field of a query with something like
> "FieldByName"?
> please advise
>
>
Sun, Jan 13 2008 8:53 PMPermanent Link

"Robert"

"Andrej Bivic" <andrej.bivic@abitrade.si> wrote in message
news:1EA0EE8E-F343-42DB-AB90-41E8BD9FF978@news.elevatesoft.com...
> How do I get a value of a field of a query with something like
> "FieldByName"?

You could try something like
AQuery.FieldByName('MyFieldName').AsString

Just a thought.

Robert
> please advise
>

Tue, Jan 15 2008 6:20 PMPermanent Link

"Andrej Bivic"
Tnx, it works!

"Andrej Bivic" <andrej.bivic@abitrade.si> wrote in message
news:1EA0EE8E-F343-42DB-AB90-41E8BD9FF978@news.elevatesoft.com...
> How do I get a value of a field of a query with something like
> "FieldByName"?
> please advise
>

Image