 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
helmut woess Guest
|
Posted: Mon Jul 18, 2005 4:27 pm Post subject: suppress message when cancelling connect |
|
|
Hello,
i use Delphi2005 german update 3.
At start i check, if my TADOConnection(dbGo) will connect before user can
enter his data for login. This can happen because for test purposes i have
the connection open at design time and sometimes i forget to set it back
before sending the update to the customer, but the customer has other login
parameters, so the automatic connect should be stopped.
I do this in OnWillConnect event where i set EventStatus := esCancel. This
is working, only the message that "action was cancelled by user" is
unwanted.
What can i do to suppress this message?
Or any other idea how to stop this (without using the standard login prompt
or a splash screen)?
The problem is that the Connect is done before the create event is
activated and in the initialization section the connection object is not
known.
thanks,
Helmut
|
|
| Back to top |
|
 |
|
|
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
|
|