You will need to declare your own enumerations, and then define the parameter for your functions as this numbered type.
Public Enum eOptions Option1 Option2 End Enum public Function DoSomething(ByVal x as string, Byval MyOption as eOptions)
When you call the ala function:
Call DoSomething("myValue", Option2)
You will see the values โโavailable for the second parameter for the function as "Option 1" or "Option2".
source share