Document Library for WinForms | ComponentOne
C1.Win.C1Document.4.8 Assembly / C1.Win.C1Document 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