Send feedback on this topic.
Teradata.Client.Provider
ToBoolean Method (TdNumber)



Teradata.Client.Provider Namespace > TdNumber Structure : ToBoolean Method
The TdNumber that is to be converted to a boolean.
Converts the value of the specified TdNumber to a Boolean.
Syntax
'Declaration
 
Public Shared Function ToBoolean( _
   ByVal value As TdNumber _
) As Boolean
'Usage
 
Dim value As TdNumber
Dim value As Boolean
 
value = TdNumber.ToBoolean(value)
public static bool ToBoolean( 
   TdNumber value
)
public:
static bool ToBoolean( 
   TdNumber value
) 

Parameters

value
The TdNumber that is to be converted to a boolean.

Return Value

true if The TdNumber is non-zero. false if the TdNumber is zero.
Exceptions
ExceptionDescription
The value of the TdNumber is Null.
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdNumber Structure
TdNumber Members