Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages
Started by Dean Brown
Wed, 10 May 2006 18:24
Removing TADOConnection Active = true flag on startup?
Author: Dean Brown
Date: Wed, 10 May 2006 18:24
Date: Wed, 10 May 2006 18:24
8 lines
1039 bytes
1039 bytes
Anyone know if it's possible to dynamically set the TADOConnection.Active flag to false if its accidentally left on, before the program attempts to make the connection at startup? Its a gotcha that keeps getting us during general testing. Thanks for any help, Dean
Re: Removing TADOConnection Active = true flag on startup?
Author: Bud Manz
Date: Mon, 22 May 2006 23:43
Date: Mon, 22 May 2006 23:43
21 lines
1483 bytes
1483 bytes
Dean Brown wrote:
> Anyone know if it's possible to dynamically set the TADOConnection.Active
> flag to false if its accidentally left on, before the program attempts to
> make the connection at startup? Its a gotcha that keeps getting us during
> general testing.
>
> Thanks for any help,
>
> Dean
Try checking the TADOConnection.Connected to see if it's true, if it's
not, then set it on...
if(!ADOConnection1->Connected)
{
ADOConnection1->Active = true;
}
This code is untested and I'm not sure if it's proper... use the idea!
HTH,
Bud
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads