VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get/Set/Clear Bits from a numeric value

Tim Savage  (1 Submission)   VB function enhancement   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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.

Inputs
See included Documentation

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

Returns
See included Documentation

Rate Get/Set/Clear Bits from a numeric value (4(4 Vote))

Download Get/Set/Clear Bits from a numeric value

Get/Set/Clear Bits from a numeric value Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters