Subject | TIB_Query.FieldByName().AsInterger -> Accessviolation |
---|---|
Author | Queck Rainer |
Post date | 2003-05-15T13:35:32Z |
Hello List,
I have a Query always doing the same select on the same table.
In a loop :
<MyQuery>.Refresh;
with <MyQuery> do
begin
First;
while not EOF do
begin
try
r:=2+FieldByName('DESTINATION').AsInteger;
except
....;
end;
....
I very often end in the exception because of a accessviolation :-(
What am I doing wrong?
Thanks for hints.
Rainer
I have a Query always doing the same select on the same table.
In a loop :
<MyQuery>.Refresh;
with <MyQuery> do
begin
First;
while not EOF do
begin
try
r:=2+FieldByName('DESTINATION').AsInteger;
except
....;
end;
....
I very often end in the exception because of a accessviolation :-(
What am I doing wrong?
Thanks for hints.
Rainer