Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM and Access/Assign
Message
De
15/10/1998 02:59:28
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00146877
Message ID:
00147037
Vues:
38
>Eric,
>
>An Access method fires when you access a property, the argument you put in the parens is interpreted as an index into the array property and that is your access. The argument in the parens is NOT passed to the access method.

That's what I meant to say. Sorry my language was unclear.
>
>If you want the behavior you are asking for you can do it by providing a method that accepts the parameter. Hide or Protect the colleciton property and only allow it to be gotten to by calling the method. I would name the method Collection as well so the interface is clear.

That's what I thought you meant. I know COM stuff should really be done Set/Get style anyway but I was hoping it might be easier just to reference some properties.

Ah well...

Thanks for your help.

Eric Shaneson
Cutting Edge Consulting
Eric Shaneson
Cutting Edge Consulting
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform