Board index » cppbuilder » Newby: ComboBox with Available DB's

Newby: ComboBox with Available DB's


2004-07-26 10:38:03 PM
cppbuilder110
I am quiet new with Borland C++ Builder.
I am struggling to get the available DatabaseName-s (those you can see under
the TTable properties) in a combo-box.
The thing I want to do is @runtime deciding which DB to take.
Beside that I also have to give in the login and password.
Someone to give me some hints?
Thanks,
Klaas Engels
 
 

Re:Newby: ComboBox with Available DB's

Hello Klaas,
The TSession::GetDatabaseNames retrieves all persistent databases configured
on the local BDE. You may have other databases which have not been
configured on the BDE. So it is a good idea provide a way to select the
database by selecting files or directories too.
HTH
Jayme.
"s0036564" < XXXX@XXXXX.COM >escreveu na mensagem
Quote
I am quiet new with Borland C++ Builder.

I am struggling to get the available DatabaseName-s (those you can see
under
the TTable properties) in a combo-box.

The thing I want to do is @runtime deciding which DB to take.

Beside that I also have to give in the login and password.

Someone to give me some hints?

Thanks,

Klaas Engels


 

Re:Newby: ComboBox with Available DB's

I am going to try this out rightaway. Thanks already.
Klaas
"Jayme Jeffman Filho" < XXXX@XXXXX.COM >wrote in message
Quote
Hello Klaas,

The TSession::GetDatabaseNames retrieves all persistent databases
configured
on the local BDE. You may have other databases which have not been
configured on the BDE. So it is a good idea provide a way to select the
database by selecting files or directories too.

HTH

Jayme.


"s0036564" < XXXX@XXXXX.COM >escreveu na mensagem
news: XXXX@XXXXX.COM ...
>I am quiet new with Borland C++ Builder.
>
>I am struggling to get the available DatabaseName-s (those you can see
under
>the TTable properties) in a combo-box.
>
>The thing I want to do is @runtime deciding which DB to take.
>
>Beside that I also have to give in the login and password.
>
>Someone to give me some hints?
>
>Thanks,
>
>Klaas Engels
>
>


 

{smallsort}

Re:Newby: ComboBox with Available DB's

This works!!! Great... I am going to read something more about Borland
Database Engine. Seems to be helpful.
K
"Jayme Jeffman Filho" < XXXX@XXXXX.COM >wrote in message
Quote
Hello Klaas,

The TSession::GetDatabaseNames retrieves all persistent databases
configured
on the local BDE. You may have other databases which have not been
configured on the BDE. So it is a good idea provide a way to select the
database by selecting files or directories too.

HTH

Jayme.


"s0036564" < XXXX@XXXXX.COM >escreveu na mensagem
news: XXXX@XXXXX.COM ...
>I am quiet new with Borland C++ Builder.
>
>I am struggling to get the available DatabaseName-s (those you can see
under
>the TTable properties) in a combo-box.
>
>The thing I want to do is @runtime deciding which DB to take.
>
>Beside that I also have to give in the login and password.
>
>Someone to give me some hints?
>
>Thanks,
>
>Klaas Engels
>
>