Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form not found
Message
De
23/04/1999 13:37:34
 
 
À
23/04/1999 13:09:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00211597
Message ID:
00211615
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform