Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get a checksum sort of for the app folder/placeme
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01056670
Message ID:
01057193
Views:
27
Hi Sergey

>>>It's hard to suggest anything because it's not clear what the problem is.

Well it goes some thing like this. My app, at startup, generates ODBC registry settings which point to the FireBird database that it is using. So for consistancy I have devised a naming pattern something like C13_VSO3Data_FB so I know that the path contained in it is pointing to my project C13 app and to it's FireBird database.

This naming is fine as far as the same computer housing 2 or more different projects as the C13 will change so for each application there will be C12_VSO3Data_FB, C11_VSO3Data_FB, C14_VSO3Data_FB, so on for ODBC user data source names.

Now the problem arises when the same app is installed twice on the same machine both have the same ODBC user data source (u.s.d.) names, namely C13_VSO3Data_FB. Yet both the installations are in different folders, for simplicity let say copy one is on path C:\Cpy1 and it's data is in C:\Cpy1\Data. When this app starts the ODBC u.s.d. named C13_VSO3Data_FB will point to C:\Cpy1\Data\db.fdb

Now a second copy is installed of the same app in the folder C:\Cpy2 and it's data is in C:\Cpy2\Data. When this app starts the ODBC u.s.d. named C13_VSO3Data_FB will point to C:\Cpy2\Data\db.fdb

Start copy one C13_VSO3Data_FB=C:\Cpy1\Data\db.fdb without closing it start copy two C13_VSO3Data_FB=C:\Cpy2\Data\db.fdb, switch between apps and this both the apps now use C:\Cpy2\Data\db.fdb as and when remote views are closed and opened. Incidently I have stored in my remote views the connection name as C13_VSO3Data_FB so as to make the RV's portable between user selected folders.

Now I wanted to generate some kind of code for the foldername from which the app starts so I can modify the ODBC u.s.d. to somethings like C13_VSO3Data_FB_123456 for folder C:\Cpy1\Data\db.fdb and C13_VSO3Data_FB_456789 for folder C:\Cpy2\Data\db.fdb...

No, this just struck me, my RV is still expecting C13_VSO3Data_FB as the connection, this is not done. Sorry about this but I had completely taken the RV for granted, sad.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform