ArcFM Responder Mobile Developer Guide
ToInt32 Method






A value to convert
The conversion value for null and DBNull values
DBNull and null aware conversion to int32
Syntax
'Declaration
 
Public Shared Function ToInt32( _
   ByVal value As System.Object, _
   ByVal nullValue As System.Integer _
) As System.Integer
'Usage
 
Dim value As System.Object
Dim nullValue As System.Integer
Dim value As System.Integer
 
value = DbConvert.ToInt32(value, nullValue)
public static System.int ToInt32( 
   System.object value,
   System.int nullValue
)
public function ToInt32( 
    value: System.TObject;
    nullValue: System.Integer
): System.Integer; static; 
public static function ToInt32( 
   value : System.Object,
   nullValue : System.int
) : System.int;
public: static System.int ToInt32( 
   System.Object* value,
   System.int nullValue
) 
public:
static System.int ToInt32( 
   System.Object^ value,
   System.int nullValue
) 

Parameters

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

Return Value

The int32 equivalent of the input value
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DbConvert Class
DbConvert Members

Send Feedback