Home All Groups Group Topic Archive Search About
Author
17 Feb 2006 3:37 PM
ari
hey all,

i have a reusable email class and was wondering... the line of code that
will be calling my email class; how do i make it where when you are entering
the parameters for the call and you press the space bar or something and it
will show a list of available options to choose from to fill that parameter.

thanks,
ari

Author
17 Feb 2006 4:56 PM
Armin Zingler
"ari" <a**@discussions.microsoft.com> schrieb
> hey all,
>
> i have a reusable email class and was wondering... the line of code
> that will be calling my email class; how do i make it where when you
> are entering the parameters for the call and you press the space bar
> or something and it will show a list of available options to choose
> from to fill that parameter.


Maybe you're looking for an Enum:

enum MyEnum
    A
    B
end enum


class YourClass
    sub Method(byval param as MyEnum)
        '...
    end sub
end class

'...

dim o as new yourClass
method<space>   'enum members will be listed



Armin
Author
17 Feb 2006 7:30 PM
ari
thank you.

Show quoteHide quote
"Armin Zingler" wrote:

> "ari" <a**@discussions.microsoft.com> schrieb
> > hey all,
> >
> > i have a reusable email class and was wondering... the line of code
> > that will be calling my email class; how do i make it where when you
> > are entering the parameters for the call and you press the space bar
> > or something and it will show a list of available options to choose
> > from to fill that parameter.
>
>
> Maybe you're looking for an Enum:
>
> enum MyEnum
>     A
>     B
> end enum
>
>
> class YourClass
>     sub Method(byval param as MyEnum)
>         '...
>     end sub
> end class
>
> '...
>
> dim o as new yourClass
> method<space>   'enum members will be listed
>
>
>
> Armin
>