AS Switch/case problem
AS Switch/case problem
Out of context: Reply #1
- Started
- Last post
- 7 Responses
- enjine0
do not declar them with the var keyword within the body of the switch statement.
the length of their existence is only during the duration of the switch evaluation.
so just say
var myVar;
and then begin your switch statement, and just refer to myVar (without the var in front of it)