Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IMPLEMENTS Question
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01156711
Message ID:
01156715
Views:
24
Is there any way to dynamically fill in the control name and control library in the
IMPLEMENTS statement:


Since the IMPLEMENTS keyword is part of the DEFINE CLASS command, about the only way that I can think of doing this is to keep yout class definitition in a memo field, and then at runtime, before you instantiate the class, substitute the name and library, create a temporty prg for the class efinition using STRTOFILE(), compile the prg, and then instantiate the class.

After you are finished with the class, do not forget to issue a CLEAR CLASS so you can delete the temporary prg.
Previous
Reply
Map
View

Click here to load this message in the networking platform