Valhalla Legends Forums Archive | Visual Basic Programming | C++ to VB Conversion

AuthorMessageTime
ChR0NiC
Does anyone know the VB equivalent to C++'s One's Complement Operator: ~
April 8, 2004, 10:26 PM
Noodlez
IIRC, it's Not
April 8, 2004, 11:21 PM
ChR0NiC
[quote author=Noodlez link=board=31;threadid=6208;start=0#msg54099 date=1081466519]
IIRC, it's Not
[/quote]

Um....what do you mean it's not?

One's Complement Operator

Edit: My question is, how would I recreate the "~" in VB, in order to use it the same way as you would in C++.
April 8, 2004, 11:33 PM
Adron
[quote author=ChR0NiC link=board=31;threadid=6208;start=0#msg54104 date=1081467217]
[quote author=Noodlez link=board=31;threadid=6208;start=0#msg54099 date=1081466519]
IIRC, it's Not
[/quote]

Um....what do you mean it's not?

One's Complement Operator

Edit: My question is, how would I recreate the "~" in VB, in order to use it the same way as you would in C++.
[/quote]

It seems to be.
April 8, 2004, 11:42 PM
ChR0NiC
[quote author=Adron link=board=31;threadid=6208;start=0#msg54110 date=1081467774]
It seems to be.
[/quote]

Why are you guys confusing me in such a way, so it is possible or it is not possible?
April 8, 2004, 11:43 PM
Noodlez
No ones confusing you. I gave you a direct an correct answer, Adron simply confirmed it. Do some research.
April 9, 2004, 12:08 AM
ChR0NiC
[quote author=Noodlez link=board=31;threadid=6208;start=0#msg54115 date=1081469308]
No ones confusing you. I gave you a direct an correct answer, Adron simply confirmed it. Do some research.
[/quote]

A yes or no will do.
April 9, 2004, 12:15 AM
K
I believe you can also achieve the same effect by XORing with all ones (binary).
April 9, 2004, 2:13 AM

Search