foxteam1
IS-IT--Management
- Jul 28, 2006
- 8
Hi
I try to convert a VBA (Access 2000) function using a Comm Object (from Borland C++ 6) to VFP9.
This "function" use an array by address like this in VBA:
DIM mayarray as Long
myarray(0)=1127789
i as Int
i=1
oCom.LauchMacro( i , myarray() ) ==> works
But in VFP
i=1
Public array myarray(1)
myarray(1)=1127789
oCom.LauchMacro( i , myarray() ) ==>not working and display no error
I try
oCom.LauchMacro( i , @myarray() ) ==>error (subscript...)
Any idea, thanks
Franck
I try to convert a VBA (Access 2000) function using a Comm Object (from Borland C++ 6) to VFP9.
This "function" use an array by address like this in VBA:
DIM mayarray as Long
myarray(0)=1127789
i as Int
i=1
oCom.LauchMacro( i , myarray() ) ==> works
But in VFP
i=1
Public array myarray(1)
myarray(1)=1127789
oCom.LauchMacro( i , myarray() ) ==>not working and display no error
I try
oCom.LauchMacro( i , @myarray() ) ==>error (subscript...)
Any idea, thanks
Franck