[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| INLIST |
+---------------------------------+
INLIST(<expr1>, <expr2>
[, <expr3> ... ])
-----------------------------------
Determines if expression is contained in series of expressions.
Return value - Logical.
-----------------------------------
<expr1>
Expression to search for.
<expr2> [, <expr3> ... ]
List of expressions to search. The expressions must all be of the same
type (character, numeric, logical or date).
+---------------------------------+
| Examples |
+---------------------------------+
INLIST() determines which quarter of the year the current month is in.
The current month is stored to a variable MONTH. Each CASE statement
uses INLIST() to test if the contents of the variable MONTH is in a list
of month names. The proper quarter is stored to a variable REPORTITLE.
SET TALK ON
STORE CMONTH(DATE()) TO month
DO CASE
CASE INLIST(month,'January','February','March')
STORE 'First Quarter' TO reportitle
CASE INLIST(month,'April','May','June')
STORE 'Second Quarter' TO reportitle
CASE INLIST(month,'July','August','September')
STORE 'Third Quarter' TO reportitle
OTHERWISE
STORE 'Fourth Quarter' TO reportitle
ENDCASE
-----------------------------------
See Also: $, OCCURS()
-----------------------------------
See Also:
$
OCCURS()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson