Aykurt Altintas <aya@force.dk> wrote in message
news:W8nK7.208$6F1.3187223573@news.euroconnect.net...
> I am using the and operator forbitwise comparison as follows
>
> a=1111
> b=1101
>
> MsgBox a And b
>
> The return value is 1093.
>
> I should get 1101. Does anyone know the error?
>
> Thx
> Aykurt Altintas
Hi Aykurt
You are working on integers (or longs) therefore the assignments are
integer values and not bit values. So
a=10001010111
b=10001001101
a And b = 10001000101 = 1093
So there is no error
--
Mikkel Bundgaard
IT University of Copenhagen
http://officehelp.gone.dk
ICQ# 116946261
Se SpaceCommunicator - en peer-to-peer chat-applikation i Java