Subject | catching excpetion in TIB_Connection.Connect |
---|---|
Author | Ryan Nilsson-Harding |
Post date | 2002-09-23T05:06:39Z |
Hi there,
I have the code:
try
myConn.Connect;
except on e: EIB_ISCError do begin
...
...
end;
end;
Where myConn is a TIB_Connection component.
This worked fine when I'm supplying the user/pass in code (during
development only), and I could determine if the exception occured
becuase the DB file did not exist, in which case I would call code
to create the gdb file.
But when I have LoginPrompt=True, the exception is not caught in my
try.except block, although the same exception is still thrown.
Could someone please explain how I can still catch this exception,
even when I have a login prompt?
Rgds,
-Ryan
I have the code:
try
myConn.Connect;
except on e: EIB_ISCError do begin
...
...
end;
end;
Where myConn is a TIB_Connection component.
This worked fine when I'm supplying the user/pass in code (during
development only), and I could determine if the exception occured
becuase the DB file did not exist, in which case I would call code
to create the gdb file.
But when I have LoginPrompt=True, the exception is not caught in my
try.except block, although the same exception is still thrown.
Could someone please explain how I can still catch this exception,
even when I have a login prompt?
Rgds,
-Ryan