
PLease help with a C++ to VB translation
Quote:
> data = (dcd^sense) ? (deltv) : (deltv | 0x1000000)
> How can I write this in VB.NET?
I believe this is what you need:
data = iif((dcd Xor sense) = 0, deltv Or &H1000000, deltv)
Or you can use a standard if then else:
If (dcd Xor sense) = 0 Then
data = deltv Or &H100000
Else
data = deltv
End If
--
If you don't like lunchmeat, please remove it from my e-mail address to
send me an e-mail