Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot run form from toolbar class
Message
 
To
21/05/2002 19:06:26
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00659647
Message ID:
00660264
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform