>When I create a form and add a table into the dataenvironment, the table's path is stored. If this is on a network, say G: the table's path would be G:\tablename. So ,when I move the app to a different drive, the reference becomes invaid and the form would not load. Is there a way I can overcome this?
Your application may restore it to right path in run-time:
***DataEnvironment.BeforeOpenTables event
LOCAL cDatadir
SELECT config
GO top
cDatadir=alltrim(config.datadir)
thisform.setall("database",cDatadir+oApp.dbcname+".dbc","cursor")
It works if all DE members are DBC-ed tables. If you have free tables this code should be modified.
Edward Pikman
Independent Consultant