Hi
My Test class attach handler as CommPort.MyEvent += MyHandler; (C#)
CommPort is the class being tested. It generates events.
How should i code the said statement in VBA using AddressOf ?
CommPort class header
[ClassInterface(ClassInterfaceType.AutoDual)] public class CommPort : PortParamIf { ..... public delegate void MyDelegate(string s); public static event MyDelegate MyEvent; ..... public static void OnMyEvent() { if (MyEvent != null && RxData.Length > 1 ) { MyEvent(RxData); } }
Seems that MyEvent is not exposed to VBA, how do i rectify it ?
Thanks