Choose Function
Syntax
Choose(Index, expr[, ...])
Group
Description
Returns the value of the expr indicated by Index.
| Parameters | Description |
|---|---|
| Index | The numeric value indicates which expr to return. If this value is less than one or greater than the number of exprs, Null is returned. |
| expr | All expressions are evaluated. |
See also
If, Select Case, If( ), IIf( )
Sub Main Debug.Print Choose(2,"Hi","there") '"there" End Sub