• Welcome to Valhalla Legends Archive.
 

C++ to VB Conversion

Started by ChR0NiC, April 08, 2004, 05:26 PM

Previous topic - Next topic

ChR0NiC

Does anyone know the VB equivalent to C++'s One's Complement Operator: ~

Noodlez


ChR0NiC

#2
Quote from: Noodlez on April 08, 2004, 06:21 PM
IIRC, it's Not

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++.

Adron

Quote from: ChR0NiC on April 08, 2004, 06:33 PM
Quote from: Noodlez on April 08, 2004, 06:21 PM
IIRC, it's Not

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++.

It seems to be.

ChR0NiC

#4
Quote from: Adron on April 08, 2004, 06:42 PM
It seems to be.

Why are you guys confusing me in such a way, so it is possible or it is not possible?

Noodlez

No ones confusing you. I gave you a direct an correct answer, Adron simply confirmed it. Do some research.

ChR0NiC

Quote from: Noodlez on April 08, 2004, 07:08 PM
No ones confusing you. I gave you a direct an correct answer, Adron simply confirmed it. Do some research.

A yes or no will do.

K

I believe you can also achieve the same effect by XORing with all ones (binary).