| CASE | Index Level | CASING OFF |
| Syntax | CASING [ON | OFF | expression] |
| Category | BASIC |
| Type | Statement |
| Description |
toggles case sensitivity relative to input data and string comparisons in the current program and any called subroutines.
The FlashBASIC casing flag is automatically initialized to the case setting at TCL (which may be set using the "case" verb). With "casing on", the strings "quit", "Quit", and "QUIT" are treated as three different strings of characters. With "casing off", they are all treated as the same string. With "casing on", system date strings are in upper case as in R83. See system(27) and system(28) for the ability to interrogate the current status of case sensitivity. |
| Options | |
| See Also | statements & functions CASING OFF substring expressions substring field store \ substring extraction substring assignment case SYSTEM basic CASING ON quotes d (date) |
| Example |
casing on
crt "enter quit " : input quit if quit = "quit" then crt "lower case" end else crt "upper case" Entering "quit" causes the program to display "lower case". Any upper case character in input, like "Quit", would cause the program to display "upper case". |
| Warnings | This is not to be confused with the functionality of the TCL commands "basic" vs. "compile", which are / are not sensitive to case with respect to the statement keywords and variable names. |
| Compatibility | D3 7.0 AP |
| CASE | Index Level | CASING OFF |