?
Solved

Default method!

Posted on 2002-07-15
5
Medium Priority
?
167 Views
Last Modified: 2010-05-02
How can I make it so that my Item method of my collection is the default one so I can do

myObject(0).property
instead of
myObject.Item(0).property

?!
0
Comment
Question by:kuist
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7155656
Please maintain your open questions:

Questions Asked 20
Last 10 Grades Given A A C A A A A B B A  
Question Grading Record 13 Answers Graded / 13 Answers Received

Thanks,
Anthony
0
 

Author Comment

by:kuist
ID: 7155666
There we are!
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 460 total points
ID: 7155674
Don't use default method. .net will not supports it anymore.
But if you insist,stand up in your procedure, go to Tools, Procedure attributes, click in Advanced button and select Default from Procedure Id combo box.
0
 

Author Comment

by:kuist
ID: 7155682
Great!

I know it's not supported by .NET, but I just want my class to work like the 'others' in VB6 :)


Thanks a lot!

Here are a little extra point for the B I gave you :)
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7156919
Thanks for "A" grade.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question