SUMMARY
In the book "Learn Basic Now" (Microsoft Press, 1989), an incorrect
example of the SELECT CASE statement is shown on Pages 116 and 117.
Page 116 Example
The (incorrect) example at the bottom of Page 116 is as follows:
SELECT CASE userNum%
CASE IS 1 TO 5
PRINT "The number you entered was between 1 and 5."
CASE IS 6 TO 10
PRINT "The number you entered was between 6 and 10."
END SELECT
The SELECT CASE example on Page 116 should be corrected to read as
follows:
SELECT CASE userNum%
CASE 1 TO 5
PRINT "The number you entered was between 1 and 5."
CASE 6 TO 10
PRINT "The number you entered was between 6 and 10."
END SELECT
Page 117 Example
The (incorrect) code example on Page 117 is as follows:
SELECT CASE word$
CASE IS "a" TO "m"
PRINT "The word you entered was in the range a to m."
CASE IS "m" to "z"
PRINT "The word you entered was in the range m to z."
END SELECT
The code example on Page 117 should be corrected to read as follows:
SELECT CASE word$
CASE "a" TO "m"
PRINT "The word you entered was in the range a to m."
CASE "m" to "z"
PRINT "The word you entered was in the range m to z."
END SELECT