I'm trying to write an app in VFP 7.0 sp1 that makes calles to National Instrustments (NI) ActiveX objects.
NI ActiveX objects are methods to query data from Lab Testing Equipment Hardware
I have been able to make calles and aquire data from the object but the return data is suppose to be in an 2D Array instead i'm only getting one value returned.
Now how do I pass Arrays by reference back and forth from ActiveX objects?
because when i do something like this
------------------------------------------------------
AmountOfData = 1000
deminsion ReturnData(1)
myobject.read(AmountofData, @ReturnData)
---------------------------------------------------
i get data type mismatch
now in VB the code looks like this
----------------------------------------------------
Dim AcqData
dim AmountofData
amountofdata = 1000
myobject.Read AmountofData, AcqData
---------------------------------------------------
and the AcqData becomes an array
so how do i work around this in VFP
NI ActiveX objects are methods to query data from Lab Testing Equipment Hardware
I have been able to make calles and aquire data from the object but the return data is suppose to be in an 2D Array instead i'm only getting one value returned.
Now how do I pass Arrays by reference back and forth from ActiveX objects?
because when i do something like this
------------------------------------------------------
AmountOfData = 1000
deminsion ReturnData(1)
myobject.read(AmountofData, @ReturnData)
---------------------------------------------------
i get data type mismatch
now in VB the code looks like this
----------------------------------------------------
Dim AcqData
dim AmountofData
amountofdata = 1000
myobject.Read AmountofData, AcqData
---------------------------------------------------
and the AcqData becomes an array
so how do i work around this in VFP