Results 1 to 3 of 3

Thread: Shifting bits in VB

  1. #1
    Guest
    Does any one know of a way to shift a bit in VB (like what the << and >> commands in c do)?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Just multiply or integer divide by 2^(the number of bits to shift by). That's a simple way of doing it.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Guest
    Thanks, will try that.

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