Programming Reference Manual
Choose
Syntax
Choose(
Index
,
expr
[, ...])
Description
Return the value of the
expr
indicated by
Index
.
Parameter
Description
Index
The numeric value indicates which
expr
to return. If this value is less than one or greater than the number of
exprs
then
Null
is returned.
expr
All expressions are evaluated.
See Also
If
,
Select Case
,
IIf
.
Example
Sub
Main
Debug
.
Print
Choose
(2,
"Hi"
,
"there"
)
'"there"
End
Sub
Home
IDE Overview
Declarations
Data Types
Assignment
Flow Control
Flow Control
Call
CallByName
Choose
Do...Loop
End
Exit
For...Next
For Each...Next
GoTo
If...ElseIf...Else...End If
IIf
MacroRun
MacroRunThis
RaiseEvent
RunBasicScript
Select Case...End Select
Stop
While...Wend
Error Handling
Conversion
Variable Info
Constant
Math
Financial
Strings
StringClass
Objects
Time/Date
File
User Input
User Dialog
Dialog Functions
Web Form
CCL (web server)
DDE
Settings
Miscellaneous
Operator
Translator