ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.VBFunctionLib Assembly / GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace / Interaction Class / Choose Method
Required. Double. Numeric expression that results in a value between 1 and the number of elements passed in the Choice argument.
Required. Object parameter array. You can supply either a single variable or an expression that evaluates to the Object data type, to a list of Object variables or expressions separated by commas, or to a single-dimensional array of Object elements.

In This Topic
    Choose Method
    In This Topic
    Selects and returns a value from a list of arguments.
    Syntax
    'Declaration
     
    Public Shared Function Choose( _
       ByVal Index As Double, _
       ByVal ParamArray Choice() As Object _
    ) As Object
    public static object Choose( 
       double Index,
       params object[] Choice
    )

    Parameters

    Index
    Required. Double. Numeric expression that results in a value between 1 and the number of elements passed in the Choice argument.
    Choice
    Required. Object parameter array. You can supply either a single variable or an expression that evaluates to the Object data type, to a list of Object variables or expressions separated by commas, or to a single-dimensional array of Object elements.

    Return Value

    Selects and returns a value from a list of arguments.
    Exceptions
    ExceptionDescription
    Choice.Rank != 1
    See Also