Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array As a Property
Message
From
20/04/1998 15:18:33
 
 
To
20/04/1998 15:03:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00093460
Message ID:
00093467
Views:
26
>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


Did you define the form property as an array to begin with? When you added the new property, did you add it like this: aArray(1,0)

That could explain it.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform