Feedback Case Number:
On the documentation, in the link: Controlling code flow — Xojo documentation
In part of phrase below, where say: because the color FFFF00 does not match any of the Case statements.
On the code, is wrong:
c = &cFF0000 ’ pure red,
should be:
c = &cFFFF00
The Select Case statement accepts an Else clause. The code in the Else clause executes only if none of the preceding cases match. The Else clause can be written as either “Else” or “Case Else”. In the following example, the Case Else clause executes because the color FFFF00 does not match any of the Case statements:
Var c As Color
c = &cFF0000 ’ pure red THIS IS WRONG, THE CORRECT SOULD BE: c = &cFFFF00
Select Case c
Case &c00FF00 ’ green
MessageBox(“Green”)
Case &cFF0000 ’ red
MessageBox(“Red”)
Case &c0000FF ’ blue
MessageBox(“Blue”)
Case Else
MessageBox(“None of the above”)
End Select