Is there a way of setting the data environment for a form programmatically rather than using the data environment GUI. I want to use a view as the cursor source for a form but be able to specify the database location which holds the view. I cannot see a way to set these programatically since dataenvironment is not a property of a form or formset.
The reason for doing this is that I want my application to be able to run from any location without having to set that location in the data environment GUI.
The reason for doing this is that I want my application to be able to run from any location without having to set that location in the data environment GUI.