Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store Class Library in an APP File?
Message
From
23/01/2001 00:26:38
 
 
To
22/01/2001 17:57:48
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00467037
Message ID:
00467133
Views:
13
>Hi all,
>
>Ive been having a look at storing class libraries in APP files using SET CLASSLIB TO [classlib] IN [appfile] but ive been coming across some problems.
>I can instantiate an object fine using createobject(), but say when I try to run a form which contains an object which is a child based off an object contained in the class library, it still needs to open the class library, despite it being opened in the classlib.
>
>Has anyone else tried using classes in APP files before?
>
>Michael Henstock
>AWS

It's standard practice, for a monolithic APP/EXE. Typically you can simply issue SET CLASSLIB TO < classlib >, that is, no IN clause required because VFP can find the lib in the APP/EXE. Just make sure to use ADDITIVE if you're using more than 1.

If you're using classes bound into .APPs different from the one that's currently executing, you might try SET PROCEDURE TO < TheAPP > ADDITIVE.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform