Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change cursorsource in dataenvironment
Message
 
To
08/02/2002 08:20:37
Mario Felisbino
Construtora Andrade Gutierrez S/A
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00617219
Message ID:
00617240
Views:
23
>I have a form with 3 free tables in the "c:\program1" (cursor1, cursor2,
>cursor3 in dataenvironment) but
>when I copy to other computer and install in other folder
>"c:\program2" he continues doing references the folder "c:\program1"

What I do is something similar to the following for tables in a database but I guess that it should work for free tables.

In the forms DataEnvironment add code to the BeforeOpenTables method. This can either explicitly code to the new location with something like:
this.TableName.CursorSource = ForcePath(this.TableName.CursorSource, lcNewDirectory)
or you can loop through the DataEnvironment changing each table accordingly.

HTH
Caroline
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform