Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add an Array Property to a Class
Message
From
28/08/2007 16:59:23
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 5
OS:
Windows Server 2003
Miscellaneous
Thread ID:
01251003
Message ID:
01251013
Views:
17
>>I do this very seldom, so I've forgotten how. Could someone please refresh my memory on how to add an array property to a class at design and/or run time? TIA
>
>Include a size after the name:
>
>this.AddProperty("aSomething[1]")
>
>
>You can change the size later if needed or make it wahtever size you need at the start.

Adding the size to the property name was the clue I needed - thanks.

As a side note, I thought of AddProperty() but that does not seem to be present in VFP5.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform