|
-
Jun 3rd, 2009, 11:11 PM
#1
Thread Starter
Lively Member
CInt Size
Sorry if this is a repeated question, I must not be using the proper search terms.
Convert.ToInt32 obviously is a 32 Bit Integer
Convert.ToInt16 obviously is a 16 Bit Integer
So what Size does the CInt convert to?
-
Jun 3rd, 2009, 11:19 PM
#2
Addicted Member
Re: CInt Size
http://www. vb dot net forums .com/vb-net-general-discussion/30421-what-purpose-cint.html
Last edited by JugglingReferee; Jun 3rd, 2009 at 11:22 PM.
PC #1: Athlon64 X2+Vista64+VS2008EE+.NET3.5 #2: XP (all flavours Ghost'd)+VS2008EE+.NET3.5
Help Files: HelpMaker · Dr. Explain · Create Icons: IcoFX
"Whoever eats my flesh and drinks my blood has eternal life, and I will raise him on the last day." John 6:54
-
Jun 3rd, 2009, 11:37 PM
#3
Re: CInt Size
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.
-
Jun 3rd, 2009, 11:52 PM
#4
Thread Starter
Lively Member
Re: CInt Size
-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.
-
Jun 3rd, 2009, 11:58 PM
#5
Re: CInt Size
 Originally Posted by Stupidav
-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:
Holds signed 32-bit (4-byte) integers that range in value from -2,147,483,648 through 2,147,483,647.
and further down says:
Framework Type. The corresponding type in the .NET Framework is the System.Int32 structure.
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.
-
Jun 4th, 2009, 02:45 AM
#6
Member
Re: CInt Size
 Originally Posted by jmcilhinney
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.
Thanks for your tip.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|