|
|
|
|
- Reason
- Correction
- Example
- The OTHER CASE statement is not the last statement
Error 17: OTHER CASE must be the last statement used in SWITCH
You are using a conditional statement such as SWITCH ... CASE. The "OTHER CASE" statement must be the last CASE used. Move the statement block starting with "OTHER CASE" at the end of the conditional SWITCH statement. The OTHER CASE statement is not the last statement Code triggering the error SWITCH ProductType CASE "1" Â Â Message("Food product") OTHER CASE Â Â Message("Exceptional bargain") CASE "2" Â Â Message("Cleaning product") END
Possible correctionMove the statement block starting with "OTHER CASE" at the end of the conditional SWITCH statement. SWITCH ProductType CASE "1" Â Â Message("Food product") CASE "2" Â Â Message("Cleaning product") OTHER CASE Â Â Message("Exceptional bargain") END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|