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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only