I am using VFP9, Sp1, and am trying to assign an array to an Activex property but I keep getting a "type mismatch" error.
Using the same control and similar code works using VB6.
Using the object browser shows the property to be of type variant and at runtime, using the debugger, shows it to be an array of type "Z", and the array I'm passing to be an array of type "A".
Here are code snippets from both applications (in both cases assigning values (numbers, strings, etc.) to other properties of the control work okay):
==========================================
VB code - works fine
Private Sub Command3_Click()
Dim arrRx(8) As Variant
arrRx(0) = "string 0"
arrRx(1) = "string 1"
arrRx(2) = "string 2"
arrRx(3) = "string 3"
arrRx(4) = "string 4"
arrRx(5) = "string 5"
arrRx(6) = "string 6"
arrRx(7) = "string 7"
o.RxNumbers = arrRx
==========================================
VFP9 code (for Click event) - get "type mismatch"
DIMENSION arrRx[10]
arrRx[1] = "string 0"
arrRx[2] = "string 1"
arrRx[3] = "string 2"
arrRx[4] = "string 3"
arrRx[5] = "string 4"
arrRx

arrRx[7] = "string 6"
arrRx

o.RxNumbers = arrRx
==========================================
Thanks for your help,
Mike