for dictionary_nameʃ(mark_type)ʅ do
// statements
endfor;
The
for (dictionary) statement executes one or more statements repeatedly within a loop for each selection made during a
selcase function call. This allows an operator to select some number of cases and then allows you to load each case and perform some analysis on the selected cases. Unlike the
forcase loop, which operates on all cases in a data file, this loop only operates on selected cases.
The dictionary_name must be supplied and refers to an external dictionary associated with your application. An optional argument, mark_type, indicates what kinds of cases to process, and can be one of the following values:
mark_type | Description |
marked | Process only the cases selected by the operator during the selcase function call. |
unmarked | Process the cases not selected by the operator. |
all | Process all of the cases that could have been selected by the operator. |
If not specified, the mark_type defaults to marked.
selcase(OCCUPATION_DICT,"Plantation") multiple;
numeric maxEducation;
for OCCUPATION_DICT do
maxEducation = high(maxEducation,MAXIMUM_EDUCATION);
endfor;