Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot run form from toolbar class
Message
 
À
21/05/2002 19:06:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00659647
Message ID:
00660264
Vues:
14
>Hi,
>
>I have my utils class with my classes inside. One of them is mine toolbar class. VCX is exluded from project. Problem is following:
>
>When I try this code in toolbar's button click event:
>
>DO FROM someform WITH param TO retVal
>
>
>I get the message when starting program's EXE and clicking on that toolbar button:
>
>Cannot find ........../someform.scx.
>
>How to reference mine projects forms in other menner.
>
>Vladimir.

Make sure that you have the folder that has the forms in it is in the current path ie. At the start of the program :

SET PATH TO c:\myapp\forms,c:\myapp\otherstuff

Remember that SET PATH is scoped to the current datasession. Make sure that you set the path in all private datasessions as well as the default one. (ie. In any form with a private datasession you need to SET PATH TO ....)

Also note that when you click on the toolbar you are in it's datasession.

Cheers,
Jamie
Cheers,
Jamie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform