FlexReport for .NET | ComponentOne
C1.WPF.Document Assembly / C1.WPF.Document Namespace / Utils Class / TryAsNumber Method
Value to check.
Double value.

In This Topic
    TryAsNumber Method (Utils)
    In This Topic
    Checks whether object represents numeric value, i.e. it is byte, integer, float etc and converts it to double. Returns false if object is not number.
    Syntax
    'Declaration
     
    Public Shared Function TryAsNumber( _
       ByVal obj As Object, _
       ByRef v As Double _
    ) As Boolean
    public static bool TryAsNumber( 
       object obj,
       out double v
    )

    Parameters

    obj
    Value to check.
    v
    Double value.

    Return Value

    Returns true if obj contains numeric value.
    See Also