adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / IJobVariable Interface / TrySet Method
The new VariableType
The new Value


In This Topic
    TrySet Method (IJobVariable)
    In This Topic
    Tries to set the variable to the specified type and value.
    Syntax
    'Declaration
     
    
    Function TrySet( _
       ByVal varType As JobVariableType, _
       ByVal newValue As String _
    ) As Boolean

    Parameters

    varType
    The new VariableType
    newValue
    The new Value
    Remarks
    TrySet attempts to convert the provided string value to the type specified by varType. If this succeeds, the VariableType and Value are updated and the method returns True. Otherwise the variable is not updated and the method returns false.
    See Also