Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. bit array (BSTR)

bit array (BSTR)

Scheduled Pinned Locked Moved Visual Basic
data-structurestutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pombo
    wrote on last edited by
    #1

    Any body know how to use (make) a bit array. Thanks

    D N 2 Replies Last reply
    0
    • P Pombo

      Any body know how to use (make) a bit array. Thanks

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      What's the question? BitArray stores as many boolean values as you want, well, up to 2,147,483,647 of them anyway. First you declare a BitArray object with the number of bits you want to store, say, 100 of them: Dim myBitArray As New BitArray(100) Then you use the Item Property to get/set individual values: For Index = 0 to 99     myBitArray.Item(Index) = True Next Index RageInTheMachine9532

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        What's the question? BitArray stores as many boolean values as you want, well, up to 2,147,483,647 of them anyway. First you declare a BitArray object with the number of bits you want to store, say, 100 of them: Dim myBitArray As New BitArray(100) Then you use the Item Property to get/set individual values: For Index = 0 to 99     myBitArray.Item(Index) = True Next Index RageInTheMachine9532

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        OK, thanks for your answer. specificaly my question is : How construct the "Binary Blob" from this string "1234567-8". thanks.

        D 1 Reply Last reply
        0
        • A Anonymous

          OK, thanks for your answer. specificaly my question is : How construct the "Binary Blob" from this string "1234567-8". thanks.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          What are you doing with the blob? Are you doing something with a database? RageInTheMachine9532

          1 Reply Last reply
          0
          • P Pombo

            Any body know how to use (make) a bit array. Thanks

            N Offline
            N Offline
            Nick Parker
            wrote on last edited by
            #5

            Pombo wrote: bit array (BSTR) A BSTR is different than a bit array. A BSTR is a string data type that stored the length of the string is stored with the data. -Nick Parker

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups