Please enable JavaScript to view this site.

Converts a specified value to a 32-bit signed integer. Empty strings are converted to zero. Boolean values are converted to zero for false or one for true. All other conversions are done using NumberFormatInfo.InvariantInfo. If the conversion fails an exception is thrown.

 

int ToInt(object value)

 

value

The value to convert.

Example

ToInt("12")

Returns the integer value 12.

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC