Hello Everyone
I was wondering is there a code where i can convert the option of the list into a number using VBS code?
For example i have this list:: 5 options. and i want each option to get a certain amount of days using the SELCT function.
Using this code:
Function GetDay(iPDRehabfrequancy)
Select case iPDRehabfrequancy
case 1
GetDay = 7
case 2
GetDay = 3
case 3
GetDay = 2
case 4
GetDay = 14
case else
GetDay = 0
End select
End Function
How can i tell M-files to see if the option choosed is 1 or 2 or 3? based on the data that has been picked from the list above?
I tried Cint(left)) function and it keeps giving me type mismatch..
Is there a way to perform this?
Thank you