marwic
April 10th, 2001, 10:17 AM
Is it possible (and if yes how?) to pass an array of data from MATLAB (R12) to a
VB ActiveX control as method argument.
I have tried the following but was not able to access the data.
public Sub SetData( byval vData as Variant )
Dim lData as Long
MsgBox LBound(vData) & " " & UBound(vData) ' shows 0 0
lData = vData(0) ' fails
End Sub
call method in ML (hh is handle to ActiveX object)
invoke(hh,'GetData',[1 2 3])
Any help appreciated.
VB ActiveX control as method argument.
I have tried the following but was not able to access the data.
public Sub SetData( byval vData as Variant )
Dim lData as Long
MsgBox LBound(vData) & " " & UBound(vData) ' shows 0 0
lData = vData(0) ' fails
End Sub
call method in ML (hh is handle to ActiveX object)
invoke(hh,'GetData',[1 2 3])
Any help appreciated.