Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Collection through another property
Message
 
 
To
12/08/2003 09:56:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00819334
Message ID:
00819344
Views:
11
>Hi
>
>I need to access the Item in a collection via another property's access method but it doesn't like it at all:
>
>
?this.Item(1) && Fails
>
>Because I have to specify the () it thinks I'm trying to access an array and errors, I need to use an Access Method in the property to return the Item, but it doesn't work.
>
>Any ideas?
>
>Thanks

Kev,
If the property you were trying to access was an array property, this access should should work. The index would be passed to the Access method and you could use that index to get the correct item in the collection.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform