Visual RPG Language Reference

CASXX - Conditionally Select a Subroutine for Processing

Allows you to conditionally select a subroutine for processing.

CASxx 
F1 (Operand)
Relop (Comparison Operator)
F2 (Operand)
Sr (Subroutine Name)
ParmList (Parameter List)
Hi (Indicator Variable)
Lo (Indicator Variable)
Eq (Indicator Variable)

Parts

F1

Optional. Must contain avalid operand.

Relop

Optional.Acomparison operator that must be one of the accepted AVR for .NET relational operators, such as >, =, *NE, *GT, etc.

F2

Optional. Must contain avalid operand.

Sr

Required. Contains the subroutine name to be called. The name must be a valid subroutine name declared on a BEGSR command.

Parmlist

Optional. The name of the parameter list.

Hi

Optional. As a result of the comparison, the Hi indicatoris set on if F1 is greater than F2.

Lo

Required.As a result of the comparison, the Lo indicatoris set on if F1 is less than F2.

Eq

Optional. As a result of the comparison, the Eq indicatoris set on if F1 is equal to F2.

Remarks

The CASxx operation is functionally identical to a CASEDFT operation when the F1, Relop, and F2 keywords are not used.

CASXX is similar to the AVR Classic CASxx, except that RELOP is now conditional and must be one of the accepted AVR for .NET relational operators, such as >, =, *NE, *GT, etc. Also,the Parmlist parameter was added to allow the passing of arguments to the subroutine.

See Also

BEGSR
CASEDFT
COMP