Search Tools Links Login

Get/Set/Clear Bits from a numeric value


Visual Basic 6, or VB Classic

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

Inputs

See included Documentation

Assumptions

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

Returns

See included Documentation

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 90 times

Categories

Visual Basic 6

Attachments

Get_Set_Cl210876132001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 1,470 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.