F
Filip Kratochvil
Hello all,
In VB6 I'm able to do the following:
If (intValue And 64) = 64 Then
...
do something here
...
End If
where intValue is for examle 4160 (to satisfy the condition)
if i have a C# consolle application with:
Console.WriteLine(4160 & 64)
I will get 64 as a result - as expected, but how do I write the "If "test
with an integer variable passed in??
writting the following:
if (4160 & 64 == 64)
{ ...
do something here
...
}
I keep getting error:
Operator '&' cannot be applied to operands of type 'int' and 'bool'
Thanks in advance
Filip
In VB6 I'm able to do the following:
If (intValue And 64) = 64 Then
...
do something here
...
End If
where intValue is for examle 4160 (to satisfy the condition)
if i have a C# consolle application with:
Console.WriteLine(4160 & 64)
I will get 64 as a result - as expected, but how do I write the "If "test
with an integer variable passed in??
writting the following:
if (4160 & 64 == 64)
{ ...
do something here
...
}
I keep getting error:
Operator '&' cannot be applied to operands of type 'int' and 'bool'
Thanks in advance
Filip