> In the other hand a 1 bit storage is easy and has a direct
> support by PB, you can do this:
> Dim MyVar (1000) as BYTE
> And you can access to an 8.000 bit field array using:
> Answer=Bit(MyVar(0),5000)
> And set it with:
> Bit Set MyVar(0),5000
Yes, you could do that, but there are 7 "wasted bits" in each byte assigned
that way. I was thinking about a way to set up a one-bit field, not an 8-bit
field where only one bit is used.
As you pointed out, this whole thing may not be of great practical use due to
the speed penalty. However, I thought it an interesting problem, and I
_still_ have no idea of how it can be done.
Thank you very much for your response anyway.
--- Msgedsq 2.2e
---------------
* Origin: THE BIG ELECTRIC CAT Melville Sask *SDS* *PDN* (1:140/53)
|