Sorry if this is a repeated question, I must not be using the proper search terms.:eek2:
Convert.ToInt32 obviously is a 32 Bit Integer
Convert.ToInt16 obviously is a 16 Bit Integer
So what Size does the CInt convert to?
Printable View
Sorry if this is a repeated question, I must not be using the proper search terms.:eek2:
Convert.ToInt32 obviously is a 32 Bit Integer
Convert.ToInt16 obviously is a 16 Bit Integer
So what Size does the CInt convert to?
http://www. vb dot net forums .com/vb-net-general-discussion/30421-what-purpose-cint.html
In VS, click on CInt in code and press F1. Do that first whenever you can in future. Failing that, select Help -> Index from the main menu.
-2,147,483,648 through 2,147,483,647
Don't know why I didn't think of that.............. Thanks jmcilhinney
Fortunaly I know those values are INT32 if any one else wonders.
You don't have to know. The Return data type column in that table provides a link to the documentation for the Integer Data Type (Visual Basic). That topic provides the following description on the very first line:and further down says:Quote:
Holds signed 32-bit (4-byte) integers that range in value from -2,147,483,648 through 2,147,483,647.
Don't forget that the MSDN Library is heavily hyperlinked so if you don't find exactly what you need on the first page you look at there is every chance that you will simply by following a relevant link or two.Quote:
Framework Type. The corresponding type in the .NET Framework is the System.Int32 structure.