Mike Devenport wrote:
Ah yes, when I removed line 54 and 55 it worked. Thanks for pointing that out, I guess when you establish the method outside of the the switch it uses that formula correct?
Not sure what you mean. Line 54 is a compile error because you are trying to declare a variable that name clashed with another variable declared earlier. Line 55 is a compile error because you tried to use a variable that doesn't exist. Regardless, neither line were necessary, so I removed them.
Henry