ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.ExpressionInfo Assembly / GrapeCity.Enterprise.Data.Expressions.Evaluation Namespace / Variant Structure / Unary Negation Operator
The variant to be negated.

In This Topic
    Unary Negation Operator (Variant)
    In This Topic
    Negates the given numerical variant.
    Syntax
    'Declaration
     
    Public Operator -( _
       ByVal a As Variant _
    ) As Variant
    public Variant operator -( 
       Variant a
    )

    Parameters

    a
    The variant to be negated.
    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