Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM and Access/Assign
Message
From
15/10/1998 02:59:28
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00146877
Message ID:
00147037
Views:
37
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform