Equivalent for VB6

M

Mazant, K.

Can someone indicate the equivalent for VB6 on the following statements?


Dim t As Long = ((r Xor X) >> 2) '=???

t >>= 1 '=???

x = x Or (1L << j) '=???




TIA,
 
M

Mattias Sjögren

Can someone indicate the equivalent for VB6 on the following statements?


Dim t As Long = ((r Xor X) >> 2) '=???

Long in VB.NET is a 64-bit integer, which doesn't exist. So all the
following is based on the VB6 32-bit Long type instead.

Dim t As Long
t = (r Xor X) \ 4

t >>= 1 '=???

t = t \ 2

x = x Or (1L << j) '=???

x = x Or 2 ^ j


Mattias
 
M

Mazant, K.

Mattias said:
Long in VB.NET is a 64-bit integer, which doesn't exist. So all the
following is based on the VB6 32-bit Long type instead.

Dim t As Long
t = (r Xor X) \ 4



t = t \ 2



x = x Or 2 ^ j


Mattias


Thank you Mattias,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top