Board index » delphi » ModifyAlias question
Jeff Swanberg
![]() Delphi Developer |
Mon, 06 Aug 2001 03:00:00 GMT
|
Jeff Swanberg
![]() Delphi Developer |
Mon, 06 Aug 2001 03:00:00 GMT
ModifyAlias question
I have a need to be able to switch between multiple years worth of data in
my app. I have used the ModifyAlias proc to change the path that all of my current TTable and TQuery Alias points to. When I look at the BDEAdmin, the path is, indeed, being changed but the data itself is not switching - why? Do you have to refresh all the datasets or something? Jeff |
Tierra Fertil S.A
![]() Delphi Developer |
Mon, 06 Aug 2001 03:00:00 GMT
Re:ModifyAlias questionQuoteJeff Swanberg wrote: SaveConfigFile, then if you're using more than one session, the change is visible only to those sessions with cfmPersistent included in the ConfigMode property. Victor H. Ulloa |
Jeff Swanber
![]() Delphi Developer |
Mon, 06 Aug 2001 03:00:00 GMT
Re:ModifyAlias questionI did call Session.SaveConfigFile (until then the BDEAdmin wasn't even reporting the change). Still, though, when I run a report or query, etc. after altering the Alias path, the result set is still from the data on the original path. Jeff Tierra Fertil S.A. <tfer...@hotmail.com> wrote in message Quote
|
Jeff Swanber
![]() Delphi Developer |
Mon, 06 Aug 2001 03:00:00 GMT
Re:ModifyAlias questionBrian, OK, but can you give me a quick 1-2-3 on how to do this? I checked the 1. Where do I place the Tdatabase component and how do I configure it? Jeff Brian Bushay TeamB <BBus...@Nmpls.com> wrote in message Quote>>I have a need to be able to switch between multiple years worth of data in |
Jeff Swanber
![]() Delphi Developer |
Mon, 06 Aug 2001 03:00:00 GMT
Re:ModifyAlias questionBrian, OK, but can you give me a quick 1-2-3 on how to do this? I checked the 1. Where do I place the Tdatabase component and how do I configure it? Jeff Brian Bushay TeamB <BBus...@Nmpls.com> wrote in message Quote>>I have a need to be able to switch between multiple years worth of data in |
Jeff Swanber
![]() Delphi Developer |
Mon, 06 Aug 2001 03:00:00 GMT
Re:ModifyAlias questionBrian, I also tried the suggestion of closing then reopening the Table components Jeff Brian Bushay TeamB <BBus...@Nmpls.com> wrote in message Quote>>I have a need to be able to switch between multiple years worth of data in |
Brian Bushay Tea
![]() Delphi Developer |
Tue, 07 Aug 2001 03:00:00 GMT
Re:ModifyAlias questionQuote>I have a need to be able to switch between multiple years worth of data in However I recommend you use a Tdatabase component instead of an Alias it is easier to modify its Path parameter and connect it to another path. -- |
Brian Bushay Tea
![]() Delphi Developer |
Wed, 08 Aug 2001 03:00:00 GMT
Re:ModifyAlias questionQuote
double click on it Enter a value in the name box. You will use this name in the databaseName property of all you tables just like you know use the alias name. Leave the Alias box blank Choose the appropriate driver (STANDARD for Paradox) Next click the defaults button You will see a path parameter there. Set this to the directory of your tables. At runtime to change directories set the Connected property to false. -- |