Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array As a Property
Message
 
To
20/04/1998 15:03:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00093460
Message ID:
00093470
Views:
27
>I have created an array, local in scope, within a method of a form. Now I want to save the array to a property of that form so that I can access it from other methods. I tried:
>THISFORM.aArray = aMyNewArray.
>Didn't work--When I look for THISFORM.aArray[1] I am told it isn't an array.
>
>What am I doing wrong??
>
>TIA.
>
>John

Assuming that you've created the array as a property of the form, you next would need to use ACOPY() to copy the contents of the local array to it. Assigning it as above will store the value of the first array element in the entrire array.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform