
The others keyword is an optional component of the case command syntax. When processing a case command, DataEase compares the expression that follows case to each of the statements specified by the keyword value. If none of the specified value comparisons are true, DataEase executes the actions specified after the keyword others. As soon as the actions following any value or others statement are executed, processing passes to the first action following the end command for the case statement.
Syntax
ACTION SERIES 1 .
ACTION SERIES 2 .
.
.
ACTION SERIES N .]
[others :
DEFAULT ACTION SERIES .]
The case command requires a case expression, one comparison value, and an end command. Subsequent value statements, actions, and the others keyword are optional. If others is used, it must follow all the specified comparison values.
Example
run procedure "PRINT RESERVATIONS" .
others :
record entry "MEMBERS" .
This script tells DataEase: (1) If the current user is Frank, display the ADMINISTRATION menu, (2) if the current user is Carol, run the PRINT RESERVATIONS procedure, and (3) if the current user is anyone other than Frank or Carol, display the MEMBERS Record Entry form.