Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing Collection through another property
Message
 
 
À
12/08/2003 09:56:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00819334
Message ID:
00819344
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform