Solved

Default method!

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

837 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