Vinicius Marques De Berna Guest
|
Posted: Fri Apr 16, 2004 1:20 pm Post subject: Simple thing that dosen't work |
|
|
try this code
with MySQL 3.23.55
RS : TDataSet;
table1 doesn't exist!
try
SQLConnection1.Execute('select * from table1',nil,@RS);
except
FreeAndNil(RS); <- the code stop hear, with a Dialog Text from the
DLL(DBX) and dosen't return to my code!!!
end;
ShowMessage('hello world') <- this code never execute!
the same error
try
SQLConnection1.Execute('select * from table1',nil,@RS);
except
RS.Free;
RS := nil; <- the code stop hear, with a Dialog Text from the DLL(DBX) and
dosen't return to my code!!!
end;
ShowMessage('hello world') <- this code never execute!
RS : TSQLQuery;
try
RS := TSQLQuery.Create(Aowner);
RS.SQLConnection := SQLConnection1;
RS.SQL.Text := 'select * from table1';
RS.Open;
except
FreeAndNil(RS); <- the code stop hear, with a Dialog Text from the
DLL(DBX) and dosen't return to my code!!!
end;
ShowMessage('hello world') <- this code never execute!
to all examples works the table1 may not exist in the mysql DB.
Anybody has a ideia to handle this exception, clear the variable, and still
runing he code?
Thaks!!!
Vinicius Marques De Bernardi
|
|