Search Tools Links Login

Get/Set/Clear Bits from a numeric value

Posted: 2002-06-01
By: ArchiveBot
Viewed: 60

Filed Under:

VB6 Code Cache

Title Uploaded Size 9/3/2020 3:45:00 PM 1,470

The modual contains 3 functions (full documentation is included in the modual) that let you change bits in a numeric value. This is very usefull as you can store 8 Boolean values in a single byte. It is also usefull for reading headers from Binary files (ie MP3's, MP3 ID3v2 tags). All of the functions are acheived using the AND, OR and XOR operators, also a good example of using these operators.

Original Author: Tim Savage


See included Documentation


That the input datatype is standard non-floating point numeric value.


See included Documentation

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.