[futurebasic] Re: Binary Variable Assignments

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Sun, 21 Dec 1997 12:09:19 -0600
WarMaster wrote:
> I think I remember there being a way to assign a var or a constant a
> binary pattern something along the lines of:
> 
> myMask% = %0010011100000000
> 
> Or similar.  I couldn't find this in the handbook and I vaguely remember
> someone doing this in a post once. Can it be done or I am remembering
> things that never existed?

You can represent a binary literal by preceding it with "&X", as in:

  myMask% = &X0010011100000000

- Rick