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 

suppress message when cancelling connect

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
helmut woess
Guest





PostPosted: Mon Jul 18, 2005 4:27 pm    Post subject: suppress message when cancelling connect Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) 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.