BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple thing that dosen't work

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Vinicius Marques De Berna
Guest





PostPosted: Fri Apr 16, 2004 1:20 pm    Post subject: Simple thing that dosen't work Reply with quote



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


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.