maybe also have a look at Jeff’s bitlist class that was published in Clarion Magazine
https://clarionmag.jira.com/wiki/spaces/archive/overview
The Bitlist class and templates
Jeff Slarve’s open source BitList template and class are a great way to manage large numbers of True/False values with a minimum of overhead.
Posted Tuesday, March 07, 2000
==========================
BitList Template Update
Jeff Slarve has released an updated version of his BitList template, which lets you
store bit flags in LONG variables. The individual bits can be easily displayed and
updated. Even when gigabytes are cheap, this is a useful technique. Run the
demo to see how it all works.
(Aug 29,2000)