shadows a variable
#2

The shadowing is probably just a warning that results of your actual error.

That error tells you pretty clearly what you did wrong - you placed multiple statements after a case label.

Quote:

error 002: only a single statement (or expression) can follow each "case"

You need to use brackets {} after a case if you want to place multiple statements into it.
Reply


Messages In This Thread
shadows a variable - by enzulikeS - 25.12.2018, 18:36
Re: shadows a variable - by NaS - 25.12.2018, 18:40
Re: shadows a variable - by RogueDrifter - 25.12.2018, 18:45
Re: shadows a variable - by enzulikeS - 25.12.2018, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)