ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.ExpressionInfo Assembly / GrapeCity.Enterprise.Data.Expressions.Evaluation Namespace / Variant Structure / Logical Not Operator
Variant to be inverted.

In This Topic
    Logical Not Operator
    In This Topic
    Performs a logical negation on a Variant value if it is of boolean type, or a bitwise negation if it is of a numeric type.
    Syntax
    'Declaration
     
    This operator type is not supported by Visual Basic
    public Variant operator !( 
       Variant v
    )

    Parameters

    v
    Variant to be inverted.

    Return Value

    Variant.True if the given variant is False, False otherwise for boolean varian type . Bitwise 'not' for numeric variants (int, long, ulong, float, double, decimal) and for string which can be parsed as numeric.
    Exceptions
    ExceptionDescription
    Thrown if the Variant is of a non-numeric, non-boolean type that does not support negation, such as TimeSpan, Date, or Object.
    See Also