Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array error? How can it happen?
Message
From
12/01/1999 09:02:07
 
 
To
11/01/1999 18:35:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174806
Message ID:
00174997
Views:
24
>>>When I run my form I get the following error message -
>>>
>>>'MyArray' is not an array. BUT IT IS AN ARRAY!!
>>>
>>>In the Init for the Form I have
>>>
>>>PUBLIC ARRAY MyArray(7,2)
>>>
>>>Later on in the Init for the Form I open a table to populate the array. Then later on in the Form the Array is going to become the Drop-down List in a Combobox.
>>>
>>>SELECT Mytable
>>>COPY TO ARRAY MyArray
>>>
>>>Any idea what's wrong? Every once in a great while I don't get the error and the array works and the combobox works and I don't change anything. I always CLOSE ALL and CLEAR ALL between tests so that is not the cause.
>>>
>>>Thanks for your help once again.
>>
>>Try making MyArray a form property.
>
>I am getting the same error, but I am doing a view at the Load event
>in my main form.
>Now how do you make the array a form property
>
>Mark Oliva

Open the form, go to the Form-New Property menu option. Enter MyArray[1] into the dialog box. Then in the load or init event of the form populate the array. All references to the array in the form shoud be ThisForm.MyArray.
Thanks,
Dan Jurden
djurden@outlook.com
Previous
Reply
Map
View

Click here to load this message in the networking platform