Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where's my base class?
Message
From
12/03/1999 17:44:04
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00196991
Message ID:
00197045
Views:
44
>>>>Help...
>>>>
>>>>I'm using a class library called LMClass. In my Main.prg I have the line...
>>>>
>>>>SET CLASSLIB TO ..\CLASSES\LMCLASS
>>>>

>>>>Then I start the app with...
>>>>
>>>>oApp = CREATEOBJECT( "MyBaseApp" )
>>>>oApp.DO()
>>>>

>>>>
>>>
>>>The best wayt to handle this is to NOT include the path in the SET CLASSLIB command. If you have included the class in the project manager, the explicit path is not needed. Then you do not have the runtime problem.
>>
>>So if I copy LMClass to my development directory then SET CLASSLIB TO LMCLASS (without the path), do I also have to copy LMClass to the production directory to keep the live app from crashing?
>>
>>Thanks for your prompt reply
>
>No. I use SET CLASSLIB TO MYCLASS No paths, no SET PATH statements. I then build the APP and run the app. No need to put classlib in production directory. The classlib is compiled into the APP. It is that simple. Everytime you make a change to any form or the class, you have to build the APP file again.

Thanks... that works great, but I have my Class Library in a different directory so I can use it in multiple projects. Hence the need for a SET PATH command.

Thanks again to all for your help
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform