Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array to a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00875002
Message ID:
00884422
Views:
9
>You cannot "attach" array to a property but you can store it into form's array property.
DIMESION MyForm.aProperty[1]
>ACOPY(aArray, MyForm.aProperty)
Hi Sergey,
I'm just getting around to using this idea...but cannot make it work. :-(

Any comments about the below? I've created a form, added a property named "MyArray", placed a command button on the form, put this code in the click event of the command button
DIMENSION aTest[3]
aTest[1]="One"
aTest[2]="Two"
aTest[3]="Three"

DIMENSION ThisForm.MyArray[3]
ACOPY(aTest, ThisForm.MyArray)

WAIT WINDOW ThisForm.MyArray[1] +CHR(13) +ThisForm.MyArray[2] +CHR(13) +ThisForm.MyArray[3]
I get error saying "'MYARRAY' is not an array" on the DIMENSION ThisForm.MyArray[3] command. How do I create a form property of Array type?

Thanks for any ideas,
Steven-
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform