In my ESA_Spec_An class module, I've attempted the following declarations:
private mGPIBControl as CWGPIB
private mGPIBControl as Object
private mGPIBControl as Control
private mGPIBControl as Variant
Property Set GPIBControl(ByVal objGPIBControl As CWGPIB)
Set mGPIBControl = objGPIBControl
End Property
Public Property Get GPIBControl() As CWGPIB
Set GPIBControl = mGPIBControl
End Property
What I would try is to create a new instance of the CWGPIB control that's on one of the forms. The only way I've found to do this so far is:
Load CWGPIB(intNewArrayElement)
E4402B.GPIBControl=CWGPIB(intNewArrayElement)
This works for now, but if I make a change to either the new control on the original Windows form or to the CWGPIB object in my ESA object, both change (as if it is referenced ByRef). I'm pretty convinced at this point that I can't do much more in VB, but if you have any suggestions, I'll be happy to listen.
Additionally, do you happen to have sample VB6 code on using the Service Request event to identify when an instrument is done processing and ready for the next command?
Message Edited by tbihn on 08-10-2005 07:37 PM