Spread ASP.NET 17
FarPoint.CalcEngine Assembly / FarPoint.CalcEngine Namespace / CalcConvert Class / TryConvert Method / TryConvert(Object,Decimal) Method
The value.
The decimal value.


In This Topic
    TryConvert(Object,Decimal) Method
    In This Topic
    Convert a value to decimal value. The converted value is matched with IsNumber function.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function TryConvert( _
       ByVal value As Object, _
       ByRef decimalValue As Decimal _
    ) As Boolean
    'Usage
     
    
    Dim value As Object
    Dim decimalValue As Decimal
    Dim value As Boolean
     
    value = CalcConvert.TryConvert(value, decimalValue)
    public static bool TryConvert( 
       object value,
       ref decimal decimalValue
    )

    Parameters

    value
    The value.
    decimalValue
    The decimal value.
    See Also