General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only