Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collection Object
Message
From
08/10/1999 12:12:25
 
 
To
07/10/1999 23:13:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00273466
Message ID:
00274309
Views:
28
>Nope. You add properties to an element of the array, not to the array it self. If you could add properties/methods to an array, then you could write MyArray.AProperty or MyArray.AMethod(). LIke MyArray.GetNumberOfElements(), or MyArray.MaxSize = 50.
>
>Vlad
>
>>You can add properties to an "array object".
>>
>>DIMENSION MyArray[5]
>>MyArray[1] = CREATEOBJECT('Line')
>>MyArray[1].AddProperty('Test',5) seems to work just fine!

OK, I see your distinction now. But you made it sound like you couldn't even add a property to an object that's a member of an array.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform