Spread ASP.NET 16
FarPoint.CalcEngine Assembly / FarPoint.CalcEngine Namespace / CalcConvert Class / ToBool Method
Value to convert
Example


In This Topic
    ToBool Method
    In This Topic
    Converts the specified value to a boolean value.
    Syntax
    'Declaration
     
    Public Shared Function ToBool( _
       ByVal value As Object _
    ) As Boolean
    'Usage
     
    Dim value As Object
    Dim value As Boolean
     
    value = CalcConvert.ToBool(value)
    public static bool ToBool( 
       object value
    )

    Parameters

    value
    Value to convert

    Return Value

    Boolean value equivalent to the specified value
    Exceptions
    ExceptionDescription
    Value cannot be converted.
    Example
    This example converts the value to a boolean.
    See Also