Question:
How do I programmatically change the database property of Forms so that I can put my data files anywhere?
Answer:
You can set the database properties of cursors in the dataenvironment of forms from the BeforeOpenTables method of the dataenvironment:
this.cursor1.database = SYS(5)+CURDIR()+"test2.dbc"