Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating class definitions on the fly
Message
From
11/05/2006 00:24:20
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01120742
Message ID:
01120888
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>>Just to add, you shouldn't need the set procedure part if you'll instantiate your class as
>>
>
>Thanks. In our case we use framework's method Add, which doesn't allow to pass library.

Ah, yes, the whole CodeBook family of frameworks seems to do that. They just create a huge Set Classlib and Set Procedure list out of the pjx (which is in the exe anyway), so you only need the class names, not their locations. But then you really have to do something like what you describe when you want to instantiate from something that isn't included.

>The whole idea is for generating menu on the fly using MereMortals framework.

Data driven, I presume?

>As I said, it was a very nice solution to generate all menu classes on the fly. I was thinking, however, that the class definitions will clatter the memory. I added restoring the original set('procedure') after I've done. It would not remove classes from the memory, right?

Well, it's instantiated, therefore in memory.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform