Logical operations in BB

From: Greg Edwards <"Greg>
Date: Wed, 24 Jan 2001 11:34:38 -0800

I'm trying to execute the following C++ line:
nBytesPerLine := ( (nBytesPerLine + 31) & (~31) ) / 8;

Is it true that BB doesn't have logical operators??? I've been searching
everywhere and it seems to be you have to do something like:
        nBytesPerLine := SHORT(ENTIER(ORD(BITS(nBytesPerLine + 31) * BITS(31) ) /
8));

This seems awkward... any ideas how to better do this?

Thanks everyone.

-----Original Message-----
From: Gérard Meunier [mailto:gmeunier{([at]})nowhere.xy
Sent: Tuesday, January 16, 2001 4:28 AM
To: Bengt Johansson
Cc: BlackBox Mailing List
Subject: Re: Save All


Bengt Johansson wrote:

> There is already a command for "Save All" in BlackBox 1.4, there's just no
> enty for it in the menu. The reason for this is that the File-menu already
> contains several items and it shouldn't grow too much.
>
> To activate the command you need to add an entry in the menu resource. The
> easiest way to do this is to choose Info->Menus and then click on the link
> called "System/Rsrc/Menus".
>
> In the file that is opened you need to add the following line:
>
> "Save All" "" "HostCmds.SaveAll" ""
>
> And finally you need you choose Info->Update Menus.
>
> Best Regards,
> Bengt Johansson

Thanks, it works fine.
This was not reported in the changes log, so I did'nt notice it.

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word
"unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send
a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list
owner at
   owner-blackbox{([at]})nowhere.xy

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy
Received on Wed Jan 24 2001 - 19:34:38 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:45 UTC