tags:

views:

22

answers:

1

whats do Or operator in Vb do when it is applied as follows eg

Dim returnValue As UInt32
Public Const RMA_VC_RET_NULL_PTR_PARAMETER = 1

returnValue = returnValue Or RMA_VC_RET_NULL_PTR_PARAMETER

what does the 3rd statement do?

+1  A: 

Or is the equivalent of the C# | operator. It is a binary or operation. It will return the number represented in returnValue with the least significant bit being potentially changed to 1.

JaredPar