Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the data PATH does not change the table?
Message
From
29/04/1999 15:49:47
 
 
To
29/04/1999 15:41:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00213577
Message ID:
00213634
Views:
29
>>>>I have a program in vfp50. One of the options in the program
>>>>allows to you change the data PATH. I have tested the code that
>>>>changes the data PATH and I have made sure the PATH is changed. I am using buffering with CURSORSERPROP(). After I change the data PATH, I refresh the screen, but the old data is still displayed. My code is:
>>>>
>>>>set path to &newpath
>>>>do form myform (init event)
>>>>select mytable
>>>>thisform.refresh
>>>>
>>>>Anybody know what the problem is?
>>>
>>>Data path is hard-coded in DataEnvironment, so, if you still have data files on this hard-coded path, you will get them regardless your PATH statements.
>>---
>>Hi Ed and thanks for your reply - OK - How do I put my files
>>in the DE and not hard code them so I can change the PATH?
>>Or is there another way to handle data files if one plans
>>to change paths on the program?
>
>You may change DE.Cursor.Database properties (for DBC-ed tables) and DE.Cursor.Cursorsource properties (for free tables) programmatically in run-time in DE.BeforeOpenTables event.
---
Thanks Ed... Would you please give me a small code sample.. you
know how slow I am... :)))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform