Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IMPLEMENTS Statement
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00880818
Message ID:
00880921
Views:
28
I would like to change the IMPLEMENTS statemany so that it gets
it's DLL path from a function:

I want to change:
IMPLEMENTS _SomeEvents IN "c:\some.dll"


What exactly are you trying to accomplish here? AFAIK, what you are trying to do is not possible because the IMPLEMENTS keyword is part of the DEFINE CLASS statement. This is from the VFP help file:
IMPLEMENTS InterfaceName 
Specifies that this class definition inherits the interface (class definition) of another COM component. One class can include several IMPLEMENTS statements. 
DEFINE CLASS myClass AS custom olepublic
   IMPLEMENTS Publisher IN "mybookstore.dll"
   PROCEDURE Publisher_ShowPrice(cGetID AS Long) AS Short
   ENDPROC
ENDDEFINE
Now, it seems to me, that because this defines an interface that your class inherits, you cannot turn this into a runtime activity any more than you could change the parent class of a subclass on the fly at runtime < s >.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform