>Base form class has a method that call a modal form:
>
>DO FORM MyForm TO MyVar
>
>Build a form based on this form class. When ran, I receive an error message "File 'MyForm.SCX' does not exist".
>
>If I move the code from the base form class to the form, everything works fine.
Sylvain-
I assume you are getting this error in the design environment, and not in the exe...
The reason that this happens, is that when in designe mode, VFP searches for files in the current directory first, and then, if not found, in all directories listed in the PATH setting. If your PATH statement doesn't include the form's directory, you'll get an error.
This doesn't happen in an exe because all components in an exe know the location of all other files included in the project. You don't have to specify paths.
To fix, just set up a path statement in your VFP startup program that tells VFP where to find all of your development files.
SET PATH TO c:\vfp\forms; c:\vfp\programs; c:\vfp\libraries
etc.
Erik Moore
Clientelligence