Responder Developer Guide
ToBoolean Method


Version: 10.2.1a

Resource Center Home

A value to convert
The conversion value for null and DBNull values
DBNull and null aware conversion to bool
Syntax
'Declaration
 
Public Shared Function ToBoolean( _
   ByVal value As Object, _
   ByVal nullValue As Boolean _
) As Boolean
'Usage
 
Dim value As Object
Dim nullValue As Boolean
Dim value As Boolean
 
value = DbConvert.ToBoolean(value, nullValue)
public static bool ToBoolean( 
   object value,
   bool nullValue
)

Parameters

value
A value to convert
nullValue
The conversion value for null and DBNull values

Return Value

The bool equivalent of the input value
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

DbConvert Class
DbConvert Members

 

 


Send Comment