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
Title:
IMPLEMENTS Question
Miscellaneous
Thread ID:
01156711
Message ID:
01156711
Views:
79
I have a VFP class that will implement VB ActiveX control interfaces to handle their events.
The VB ActiveX control being used could be different each time the class is run Each of the
ActiveX controls will have the same public interaface.

Is there any way to dynamically fill in the control name and control library in the
IMPLEMENTS statement:
PUBLIC &gcControlName, gcControlLibrary
gcControlName 		= "__rptAccountStatus"
gcControlLibrary 	= "d:\demo\nsacctstatus.ocx"


DEFINE CLASS RPTControlEvents AS session OLEPUBLIC

	** Inherit the interface of the VB ActiveX report control
**	IMPLEMENTS __rptAccountStatus IN "d:\demo\nsacctstatus.ocx"
	IMPLEMENTS (&gcControlName) IN (gcControlLibrary) && This fails

ENDDEFINE
Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform