I'm defining 2 data series (amaUp and amaDown) inside Switch statements and using them outside. Code below .. It gives me the following compilation errors
- error CS0136: A local variable named 'amaUp' cannot be declared in this scope because it would give a different meaning to amaUp which is already used ..
- error CS0128: A local variable named 'amaUp' is already defined in this scope.
-> How do i define data series inside Switch statements and reference them outside?
CODE:
Please log in to see this code.