Visual Basic 6 (VB6) Operators

Operators in Visual Basic

Arithmetical Operators
Operators
Description
Example
Result
+
Add5+510
-
Substract10-55
/
Divide25/55
\
Integer Division20\36
*
Multiply5*420
^
Exponent (power of)3^327
Mod
Remainder of division20 Mod 62
&
String concatenation"George"&" "&"Bush""George Bush"
Relational Operators
Operators
Description
Example
Result
>
Greater than10>8True
<
Less than10<8False
>=
Greater than or equal to20>=10True
<=
Less than or equal to10<=20True
<>
Not Equal to5<>4True
=
Equal to5=7False
Logical Operators
Operators
Description
OR
Operation will be true if either of the operands is true
AND
Operation will be true only if both the operands are true

Comments

Popular posts from this blog

Control Structures In Visual Basic 6.0

C# Delegates simple example in .NET