Solved

Default method!

Posted on 2002-07-15
5
165 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 115 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 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