Subj : Sets
To   : Scott Little
From : Sean Dennis
Date : Mon Oct 12 2009 05:58 pm

Hello, Scott.

Monday October 12 2009 at 17:45, you wrote to me:

SL> The same can be done manually with bitwise operations, but sets are
SL> easier to read.

SL> Clear as mud? ;)

Actually, that makes perfect sense.

What I'm wanting to do is this: Telegard BBS has a bit setting to make the user
"hidden" when calling, so that user doesn't show up in the "who's online" and
"today's callers" bulletins.  I have a DOS program that I use to do it for my
board but with the board being OS/2 native and the DOS program takes a few
seconds to activate.

Here's the part of the Telegard structures that I'm dealing with:

=== Cut ===
userflag=             { USERS.DAT user flags }
 (
    newusermsg,                              { sent newuser message }
    clsmsg,                                  { clear screen before messages }
    flinput,                                 { full line input }
    hotkey,                                  { menu hotkeys active }
    pause,                                   { pause }
    novice,                                  { user is at novice help level }
    hiddenlog,                               { not displayed in call/online
listings }
    hiddenlist                               { not displayed in user listings
}
 );
 userflags = set of userflag;
=== Cut ===

So what I'm wondering is how would I set those two bits ("hiddenlog" and
"hiddenlist") on?  I understand how sets work now, but I'm not sure how I'd
turn the bits on and off.

Thanks for your help in this.  Since my car accident last year, it can be hard
for me to wrap my mind around certain concepts after my concussion. :)

Later,
Sean

//[email protected] | http://nsbbs.info | ICQ: 19965647

... Any given program will expand to fill all available resources.
--- GoldED/2 3.0.1
* Origin: Nocturnal State BBS - Johnson City, TN - bbs.nsbbs.info (1:18/200)