Function help

  • Thread starter Thread starter Andrew
  • Start date Start date
A

Andrew

Not sure how to do this, but when the function is called and pass the value,
I want them to select from a list like “Left, Center, Rightâ€, they only can
select those option:

Example:

Call TestFunction(Center)


Public Function TestFunction( valueToSelect)

Select Case valueToSelect

Case 1
‘do something
Case 2
‘do something
Case 3
“do something
End Select

Would I have to do some kind of property?
 
Andrew said:
Not sure how to do this, but when the function is called and pass
the value, I want them to select from a list like “Left, Center,
Rightâ€, they only can select those option:

Example:

Call TestFunction(Center)


Public Function TestFunction( valueToSelect)

Select Case valueToSelect

Case 1
‘do something
Case 2
‘do something
Case 3
“do something
End Select

Would I have to do some kind of property?

http://msdn2.microsoft.com/en-us/library/93khb7k9.aspx


Armin
 
Back
Top