Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorSource in DataEnvireonment
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00252319
Message ID:
00252878
Views:
8
Bruce:

You can modify the database property in the BeforeOpenTables method of the DE. Here is the code I use:

= AMEMBERS(aDEObjects, THISFORM.DATAENVIRONMENT, 2) && Get list of DE objects
FOR i = 1 TO ALEN(aDEObjects, 1)
loObject = EVALUATE('THISFORM.DataEnvironment.' + aDEObjects[i])
IF loObject.BASECLASS = 'Cursor'
loObject.DATABASE = oApp.HOMEDIR + '\USERDBC.DBC' && Local DBC
ENDIF
ENDIF
ENDFOR

oApp.HomeDir is an application property I use to store the path of the startup directory when the application starts.

Charlie
Previous
Reply
Map
View

Click here to load this message in the networking platform