Results 1 to 4 of 4

Thread: longs

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2012
    Posts
    3

    longs

    how many characters can a long hold?

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: longs

    Welcome to VBForums

    I guess you are getting something wrong, Long is a numerical variable it can hold integer values in the range of (- 2,147,483,468) - (+ 2,147,483,468). To store characters a String should be used!
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: longs

    Or treated as a raw set of bits there are 32 in a Long, so you could cram in 2 normal characters (16 bits), or 4 after ANSI conversion and loss of fidelity (8 bits each), or 8 Hex digits (4 bits each), etc.

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: longs

    Or the answer is infinite. The long can be a pointer to memory space that contains ~ characters
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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