|
-
Aug 6th, 2000, 12:02 PM
#1
Thread Starter
Fanatic Member
HI,
Is it possible to create functions that have an auto list box appear for some of its arguments, such as the ones you see with the msgbox function (where the list drops down with vbcritical, vbOk etc....). Thanks in advance, Shaun.
-
Aug 6th, 2000, 12:07 PM
#2
Frenzied Member
yup, you want an Enum
In a public Module (or public Object) put something like this
Code:
Public Enum MyEnum
Item1 = 1
Item2 = 2
Item3 = 3
End Enum
And Declare your function Like this
Code:
Public Function MyFunction(MyParameter as MyEnum)
You'll get a nice Picklist of Item1, Item2 and Item3 when you type the function call
-
Aug 6th, 2000, 12:19 PM
#3
Thread Starter
Fanatic Member
Cheers, that did the job!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|