MySQL Forums
Forum List  »  Connector/ODBC

ODBC/Delphi
Posted by: Thomas Edmondson
Date: April 13, 2005 08:44AM

I am creating a MySQL application using Delphi and the MySQL ODBC connector. I cannot trap a logon error when the user enters either an incorrect username or password.

My code looks like this:

procedure TfrmMain.FormActivate(Sender: TObject);
begin
if not tblEquip.Active then
try
tblEquip.Active:=true
except
frmError.Show
end
end;

Execution stops at the "tblEquip.Active:=true" statement and the program halts with an error message displaying the exception.

How can I trap logon errors?

Thanks,
Tom

Options: ReplyQuote


Subject
Written By
Posted
ODBC/Delphi
April 13, 2005 08:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.