Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot get ADDOBJECT to work
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00393920
Message ID:
00394182
Views:
11
>>>>>A class library is not searched unless included in the library search with SET CLASSLIB at runtime. Putting it in the project, or in the directory with the app, won't access it automatically - untiladded to the SET CLASSLIB list, VFP ignores it.<<<<
>
>Ed,if I follow what you are saying, does'nt this defeat the whole purpose of Inheritance ?
>

No, it just means that the lights are not automatically turned on just because there's a light switch on the wall. You have to let VFP know when the class library is allowed to be used to provide classes, just like you use SET PROCEDURE TO to list the files that may be searched for functions and procedures. Just having a procedure file in the project will not allow VFP to use it automagically. Just issue the necessary SET CLASSLIB TO and it works.

>I have all my classes set up in one particular Folder, Say C:\KER
>Now ,all my individual applications which refernce these classes will be in different directoies. Up to now, I could easily include these as part of my project. But with the Set Classlib command, am I right in saying that I will have to either:
>(1) Issuse a Set Classlib to C:\Ker\Myclass and ensure this is on the clients machine
> or
>(2) Copy all my classes to my specific application directory
>

No, hoiw about issuing a SET PATH TO that includes C:\KER and issuing a SET CLASSLIB TO MyClass ADDITIVE to add it to the list of class libraries. You have to actually read the manuals at times.

>This does'nt sound right so maybe I've missed something ?
>

Basic understanding of how VFP resolves paths and classes.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform