Compiler error [Answered]
So im getting compiler error, i understand what it means but i dont know why i get it can you explain to me?
24 Replies
im geting this error
there
why cant i use the same name since its inside other
case
cases dont create scopes
you can manually add a scope thou
using
{ }
?yes
okay ill try
thought they do thanks
yw
where would i need to add
{ }
?below the case
the first one
yeah and wherei close
so wrap all your "case code" in that
tried and some are coloring in red
wait for it
the formatting gets wacky, but you get the point
put the break in the scope too what
how ugly is that
oh lol
okay all is working fine
i forgot to add break at the end
🙂
the scopes work
thanks
do i close this or sum
just type
/close
i was saying this because by default, VS adds indentations for case blocks
✅ This post has been marked as answered!