Spread Windows Forms 17
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / CalcHelper Class / TryConvertToNumber(Object,Double) Method
The value to convert.
The numeric value.


In This Topic
    TryConvertToNumber(Object,Double) Method
    In This Topic
    Converts the value to its number equivalent value.
    Syntax
    'Declaration
     
    
    Public Shared Function TryConvertToNumber( _
       ByVal obj As Object, _
       ByRef result As Double _
    ) As Boolean
    'Usage
     
    
    Dim obj As Object
    Dim result As Double
    Dim value As Boolean
     
    value = CalcHelper.TryConvertToNumber(obj, result)
    public static bool TryConvertToNumber( 
       object obj,
       out double result
    )

    Parameters

    obj
    The value to convert.
    result
    The numeric value.

    Return Value

    true if the value can be converted to number successful; otherwise, false.
    See Also