ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.ExpressionInfo Assembly / GrapeCity.Enterprise.Data.Expressions.Evaluation Namespace / Variant Structure / Explicit Type Conversion Operator / Explicit Type Conversion(Boolean,Variant) Operator
The Variant to be converted.

In This Topic
    Explicit Type Conversion(Boolean,Variant) Operator
    In This Topic
    Converts given Variant to boolean.
    Syntax
    'Declaration
     
    Overloads Public Operator Narrowing CType( _
       ByVal v As Variant _
    ) As Boolean
    public bool operator explicit( 
       Variant v
    )

    Parameters

    v
    The Variant to be converted.

    Return Value

    Returns true if:
    • the Variant is boolean 'True';
    • the Variant is numeric non-zero;
    • the Variant is string represents numeric non-zero value;
    • the Variant is string other than 'False';
    • the Variant is TimeSpan other than TimeSpan.Zero;
    • the Variant is DateTime other than default(DateTime);
    • the Variant is object other than null.
    Returns False in all other cases.
    See Also