Board index » delphi » Filling TDatabase.Params at runtime
jb...@image.dk (Jens Bang)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
jb...@image.dk (Jens Bang)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Filling TDatabase.Params at runtime
At designtime I can double-click a TDatabase and then click the
Defaults button to fill the Params property with the parameters from the alias specified in the AliasName property. How do I accomplish this at run-time? CUL8R dude! \|/ |
Reid Roma
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Filling TDatabase.Params at runtimeHere is a method I use: Pass it a Server Name, User Name, and Password {-------------------------------------------------------------------------- end; > At designtime I can double-click a TDatabase and then click the > CUL8R dude! \|/ |
Jens Ba
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Filling TDatabase.Params at runtimeOn Wed, 19 Aug 1998 06:35:42 -0700, Reid Roman <rkro...@pacbell.net> wrote: Quote>Here is a method I use: Pass it a Server Name, User Name, and Password actual parameters defined in a specific alias, with out hardcoding them into the program. The Alias may change from customer to customer, and I don't want to have to recompile for every new customer. CUL8R dude! \|/ |
PINK
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Filling TDatabase.Params at runtimePut it on the INI file. If empty, (first time) ask the user, otherwise, let it rip. QuoteJens Bang wrote in message <35dae41d.61671...@news.image.dk>... |
Oliver Townshen
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Filling TDatabase.Params at runtimeThere are components to do some of this at the Delphi Super Page. I use the AliasEditor component by Glenn Davies. This way you can find out what is available, and if necessary, create the BDE stuff yourself. Oliver QuoteJens Bang wrote: Oliver oli...@zip.com.au Sashalom Pty Ltd Ph: +61-2-9283-1377 (w) 9675-1769 (h) 0411 754 414 (mob) |
Jens Ba
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Filling TDatabase.Params at runtimeQuoteOn Wed, 19 Aug 1998 19:25:48 -0500, "PINKO" <PI...@VATICAN.GOV> wrote: a chance that they will enter incorrect info. But worse: What if the alias changes? CUL8R dude! \|/ |