only want certain values passed

Capt_Ron

Active member
Joined
Apr 29, 2005
Messages
39
Programming Experience
1-3
This is probably basic but...

I'm creating a class that I only want certain values passed to it.
For example in the MsgBox class:

msgbox("Prompt",button) where the button can only be certain types.

I would like to do the same thing:

className("Value1","Value2",something.Yes {or something.No})

Like I said, it's probably something simple, but I'm drawing a complete blank.
Any direction would be helpful.
Thanks
Ron
 
VB.NET:
Public Enum Something
     Yes
     No
     Maybe
End Enum

usage :-

VB.NET:
byval whatvalue as Something

and

VB.NET:
className("Value1", "Value2", Something.Maybe)
 
Back
Top