Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot run form from toolbar class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00659647
Message ID:
00660314
Vues:
12
>>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

Sorry to jump in but I believe that SET PATH is Global. From the VF7 help

SET PATH is not scoped to the current data session; changes you make to the default path using the SET PATH command affect all data sessions.
Caroline
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform