Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the function of plastic quantity connection in VB?
What is the function of plastic quantity connection in VB?
A=b=c is not an even number in vb, and two equal signs have different meanings.

The first equal sign is the assignment number, which copies the value on the left to the variable on the right.

The second equal sign is to judge whether the numbers are equal. If they are equal, the result is true; if they are not, the result is false.

At compile time, this formula is converted into inverse Polish aab==, so the calculation order is obvious.

Finally, why is the formula calculated by beauty expert VB Nicole true and the printed result-1? This is the result of automatic type conversion in VB, because A is an integer variable, but the result is Boolean, so VB automatically converts the result true into an integer-1.

In VB, the automatic conversion of variable types has priority. When there are multiple variables of different types in the same formula, the variables are converted from low to high in priority order. They are in the following order:

Char & lt integer & ltlong & lt single & lt twice.