You must Sign In to post a response.
  • Category: .NET

    Alternative of Integer datatype in VB6.0


    In VB6.0 Integer can hold up to 32767. But I want to hold 100000 in integer field. What is the alternative datatype I have to choose in place of Integer.

    What is the difference of Integer and long in VB6.0?

    Thanks in advance.
  • #725508
    [Response removed by Admin. Read forum policies.]

  • #725523
    You can use Long dataype to hold 100000 value. Long datatype holds integers ranging in value from -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807.

    Integer data type are slower to load and store from and to memory.



  • #725617
    Use LOng this has the range which can hold almost every numbers.
    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.