Results 1 to 6 of 6

Thread: CInt Size

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2008
    Location
    South West Michigan
    Posts
    126

    Question 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?

  2. #2
    Addicted Member
    Join Date
    Apr 2009
    Location
    Near Dog River (sorta)
    Posts
    160

    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

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2008
    Location
    South West Michigan
    Posts
    126

    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.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: CInt Size

    Quote Originally Posted by Stupidav View Post
    -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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6
    Member
    Join Date
    May 2009
    Location
    VietNam
    Posts
    56

    Re: CInt Size

    Quote Originally Posted by jmcilhinney View Post
    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
  •  



Click Here to Expand Forum to Full Width