Hi guys!

How can I read and manupilate seperate bits of a varable?
For instance if I have 8 bit Integer variable and want to read state of 3rd bit or change its state to 1 or 0 how do I do this?

In C++ I could declare Array of Boolean with the size of the number bits used for my integer value. Then I would use pointer to assign same memory block that my integer variable uses to my array variable. This would alow me of accesing seperate bits like accesing seperate items in array.

I would like to do smething similar in Object Pascal preferable without the use of pointers.