In C++Builder and Delphi I could not find a proper way to find and open a database.
TCWFormOpenDb is a dialogbox that helps creating or finding BDE aliases.
It does this the other way around: The user finds a database file (or part
of it) and the
TCWFormOpenDb's code creates an alias for it or finds a matching alias if it already exists.
Users of the library preferably use
TCWDlgOpenDb, which is just a wrapper module around
TCWFmOpenDb. (See chapter 43 "Making a dialog box a component" from the C++ Builder 3 Developer's Guide). Before calling the
Execute() function you set the
Alias property. This specifies the alias, that is selected when the dialog box pops up. If
Alias property has the value of the selected BDE alias. An example program that does this is included.