HighTechTalks DotNet Forums  

Equivalent for VB6

Dotnet General Discussions microsoft.public.dotnet.general


Discuss Equivalent for VB6 in the Dotnet General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mazant, K.
 
Posts: n/a

Default Equivalent for VB6 - 12-08-2007 , 04:18 AM






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,


Reply With Quote
  #2  
Old   
Mazant, K.
 
Posts: n/a

Default Re: Equivalent for VB6 - 12-09-2007 , 12:55 AM






Mattias Sjögren wrote:
Quote:
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


Thank you Mattias,


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.