Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I find a different data set from another director
Message
From
30/06/1997 15:25:57
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
 
 
To
30/06/1997 13:48:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00038131
Message ID:
00038159
Views:
42
>>>>How should I design a form which is able to access to data in different directory in even different drive?
>>>>
>>>>Currently I created a form which already had the data environment. All tables needed on this form are in the data environment. Even I reset the default to different drive, the form still tries to access the default data directory in the design environment. What I did wrong?
>>>>
>>>>Jim S
>>>
>>>I think, the best way is to reset Cursor.Database properties in DE.BeforeOpenTables event.
>>Could you specify how can I reset the cursor? Thank you.
>
>Assuming that you have App object with property Datapath, you can issue
>This.Cursor11.Database=oApp.Datapath && loop it for all DE.Cursors
>in DE.BeforeOpenTables event

It works. Thank you very much Edward.
Previous
Reply
Map
View

Click here to load this message in the networking platform