Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is SET CLASSLIB TO ... ADDITIVE good for the entire proj
Message
From
19/05/1999 19:52:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00220643
Message ID:
00220652
Views:
23
>If I do a SET CLASSLIB TO whatever ADDITIVE in my startup program, will it be available to all my forms and procedures from there ?
>

Yes... or until you SET CLASSLIB without ADDITIVE.

>If I issue a second time a SET CLASSLIB ... of the same library, will it put it twice in memory ?
>

No... you can also check to see if your class is in SET CLASSLIB with something like...

If 'MYCLASS' $ Upper( Set( 'ClassLib) )

Also, you can use NewObject which will add the classlib to set classlib if it is not in the list.

>Thanks
>Eric.

HTH,
BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform