Matthew Comb wrote:
> 
> Hi Corey yes I am using a tdatasource and ttable because I only have
> professional and not any of the ADO controls.
> 
> I get the prompt when the application first loads, but more drastically, I
> don't know if the session is timing out or whatever but sometimes I come in
> in the morning and there is an error message User name and password
> undefined. I click ok and the application closes.
> 
> How can i configure it so that this prompt never occurs while still using
> these controls?

In the TDatabase editor there is an option to display the login prompt,
which you should clear.  When that is clear the TDatabase will attempt to
login automatically when you set Connected to true.  However this will fail
if you haven't set the TDatabase parameters for USERNAME and PASSWORD.

As to what would cause an already connected TDatabase to try to reconnect,
and fail in the process, I have no idea.  

-- 
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to