NutsAndBolts
Programmer
Someone must have done this before - can you let me know please how ???
I need to pass a (dynamic) array of doubles (floating point values) from the host application (VB / Access 2000) to an ActiveX control which I have written in Delphi. The existing methods and event are all working fine.
But I cannot get compatible data types between VB and the type library in Delphi
In Delphi, I have tried setting the type of the array (in the type library editor) to SAFE_ARRAY, and passing the parameter in VB like this :
Dim Points () as Double
Redim Points (5)
Points (1) = 12.34 ' etc etc for 2, 3, 4, 5
Call Control.Method (Points)
but it gives an error "type mismatch" when I run the procedure in VB
There must be a simple solution - your help would be appreciated, thanks
I need to pass a (dynamic) array of doubles (floating point values) from the host application (VB / Access 2000) to an ActiveX control which I have written in Delphi. The existing methods and event are all working fine.
But I cannot get compatible data types between VB and the type library in Delphi
In Delphi, I have tried setting the type of the array (in the type library editor) to SAFE_ARRAY, and passing the parameter in VB like this :
Dim Points () as Double
Redim Points (5)
Points (1) = 12.34 ' etc etc for 2, 3, 4, 5
Call Control.Method (Points)
but it gives an error "type mismatch" when I run the procedure in VB
There must be a simple solution - your help would be appreciated, thanks