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:
00093520
Views:
24
Hey John,

>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.

You got some great answers from John, Edward and George. I'll throw in my two cents. I've used a public domain function called AddProp5.FLL which allows me to add properties to objects at runtime. That way I don't have to pre-define them on a form or a class.

Just a thought...
Jim Duffy
Microsoft MVP
INETA Speaker
TakeNote Technologies
Developer's Choice Award Winner for Best Training Company
Specializing in VB.NET, ASP.NET, VFP, and SQL Server Training and Development
Previous
Reply
Map
View

Click here to load this message in the networking platform