Show/Hide Toolbars

XSharp

Control cannot fall through from one case label ('label') to another

 

When a switch statement contains more than one switch section, you must explicitly terminate each section, including the last one, by using one of the following keywords:

 

return

goto

break

throw

continue

 

If you want to implement "fall through" behavior from one section to the next, use goto case #. For more information and examples, see switch.

 

The following sample generates XS0163.

 

 

// XS0163.prg