Solved

Default method!

Posted on 2002-07-15
5
158 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
  • 2
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
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
Comment Utility
There we are!
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 115 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for "A" grade.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now