DriveWorks Solo 15: Choose [send feedback...]

Syntax

CHOOSE( [ Index Number], [ Value1], [ Value2], [ Value n] )

Index Number is a number, or a reference to a number, that specifies which value argument to select.

Value1, Value2, Value n are the value arguments, that you want to choose between.

There can be 1 to 254 Value arguments in any one CHOOSE function.

The CHOOSE function, when calculated, returns the value, that is specified by the index number.

Examples

Rule

Meaning
CHOOSE(CustomerNumberComboBoxReturn, "John Smith", "Sandra Thompson", "Tom Harrison")The CHOOSE function uses the return value from the CustomerNumberComboBox, to return the corresponding value argument, which in this example is a customer's name.

Example Outcomes

CustomerNumberComboBoxReturn Value

Value1

Value2

Value3

Result of the CHOOSE function

2"John Smith""Sandra Thompson""Tom Harrison"Sandra Thompson
1"John Smith""Sandra Thompson""Tom Harrison"John Smith

Table of Contents