Intellisense in my Class

Posted on 2005-05-09
Last Modified: 2010-05-02
I have a class that includes several collection properties.  One of those is "colors".  I have some custom colors.  However, I have to actually type the key name to retrieve it.  Is there any way to make this like Intellisense, or have the options pop up like the other parts?

For example... Let's say "oClass" is the object, "Colors" is a collection property, and I want to pull "Red"...


oClass.< .Colors this part will pop up already>(<"Red" I have to type this part>)

Question by:born4code
    LVL 9

    Expert Comment

    by:Naveen Swamy
    use enums for this purpose

    M.Naveen Swamy
    LVL 2

    Author Comment

    ok i can make an enum, but how do i make it pop up w/intellisense?
    LVL 6

    Expert Comment

    in the time it takes you to get this question answered, you probably could have writted "Red" many times... :)
    LVL 2

    Author Comment

    Ha.  Yes, but I have a zillion other things I can use it for.

    I guess no one knows really how to do this.

    LVL 7

    Accepted Solution

    Since a Collection is a dynamic collection of String values, Intellisense cannot work for it.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
    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…
    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…
    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…

    755 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

    21 Experts available now in Live!

    Get 1:1 Help Now