Movian
06-29-2010, 07:10 AM
Hey,
i was toying with some minor tweaks to some code and found myslef in need of being able to use a select case stateemnt in the following situation
Select case ucase(variablename)
case "F16" OR "D16"
case "B16"
case "J16"
case else
end select
i wanted to do the same thing for the 2 fields but i didn't want to write a sub just to re use the few lines. My initial test show that i can't use the OR in case statements. Unless there is another way of doing it.
So for now i just declared a second case for D16 and copied the code over.
Any thoughts ? "Other that write a sub or a function"
i was toying with some minor tweaks to some code and found myslef in need of being able to use a select case stateemnt in the following situation
Select case ucase(variablename)
case "F16" OR "D16"
case "B16"
case "J16"
case else
end select
i wanted to do the same thing for the 2 fields but i didn't want to write a sub just to re use the few lines. My initial test show that i can't use the OR in case statements. Unless there is another way of doing it.
So for now i just declared a second case for D16 and copied the code over.
Any thoughts ? "Other that write a sub or a function"