Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add an Array Property to a Class
Message
From
28/08/2007 17:07:30
 
 
To
28/08/2007 17:05:24
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:
01251021
Views:
22
>>>>>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.
>>
>>Sorry, didn't even notice that it was VFP5. There was an add-on that allowed add property functionality for VFP 5, but I'm not sure where you'd find that now.
>
>No worries. You're right, there is an add-on - Sergey pointed it out to me.

Who else? It had to be either Sergey or Naomi. < s >
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform