I am developing my first application in Visual Foxpro. For each form in the application, I am using the same code in the BeforeOpenTables method of the DataEnvironment. The code sets the path for the data location (using variables saved in a mem file). I saved a form as a class and selected this class as the basis for all new forms, however; the class does not save the DataEnvironment. Where would I put the code in this method(BeforeOpenTables) so that ALL forms are pointing to the correct data location? It doesn't seem likely that I should be changing this method in every form...??? Thanks in advance for your help.