VB or operator on int32 and int

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?

13.10.2009 17:13:07
1 ОТВЕТ

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.

1
13.10.2009 17:14:29