TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: JOSE MEJUTO
from: FRANK COX
date: 1995-08-30 10:48:00
subject: Data file `compression`

 > 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.