[futurebasic] Re: [FB] setting bits

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: "Pete" <furbies@...>
Date: Thu, 10 Jun 1999 10:43:23 +1000
> Never did figure out the FB BIT function in FB. You can use the toolbox 
> call CALL BITSET aas follows:
>
> CALL BITSET (pBlk.ioFlUsrWds.fdFlags% , 16 - 10) ' the TB Bit calls
> have the MSB-LSB backwards from most other calls. If you are using a
> long here, it would be 32 - 10
>
> Also, I believe pBlk.ioFlUsrWds.fdFlags% AND BIT(10) would also set it.
>
> hth
>
> Chris Young

Thanks Chris and others. Many hours after posting the original Q I managed
to get FN BITTST and FN BITSET to work

one thing though:
> CALL BITSET (pBlk.ioFlUsrWds.fdFlags% , 16 - 10) ' the TB Bit calls
> have the MSB-LSB backwards from most other calls. If you are using a
> long here, it would be 32 - 10

16 - 10 should be 15 - 10

and 32 - 10 should be 31 - 10

Pete...

"Smile! It keeps the bas*@rds wondering"