Not quite as you requested.
First you must define a βPublic Enumβ for the possible parameters in the module (it may be the same module if it is not a class module)
Public Enum myFuncEnum OPTION_A OPTION_B OPTION_C End Enum
Then in the function definition you should:
Public Function myFunc(vArg1 as string, vArg2 as string, vArg3 as myFuncEnum) End Function
Remember that you should compare vArg3 with OPTION_A, OPTION_B and OPTION_C instead of βAβ, βBβ and βCβ. By the way, OPTION_A, OPTION_B, etc. You can rename it to make more sense, but they must be unique for the entire project.
Oneide
source share