Search Tools Links Login

GBIC: VB6 Operators


Visual Basic 6, or VB Classic

The following is reprinted for archival purposes from Gary Beene's Information Center, with permission from Mr. Beene himself.


VB supports the following operators

Arithmetic
+ addition For numbers
- substraction
/ division
\ Integer division, discards the Decimal part of the answer
* multiply
^ exponentiation
Mod division, returning only the remainder
Comparison
= equal
< less than
> greater than
<> Not equal
>= greater than Or equal To
<= less than Or equal To
Is two variables / objects are the same
Like variable matches a pattern
Concatenation
&combines two strings into one
+combines two strings into one ( Is addition for numbers)
Logical
Andlogical conjunction (both values True )
Orlogical disjunction (either value True )
Notlogical negation (reverses True / False value)
Xorlogical exclusion ( True If one, And only one, Is True )
Implogical implication (e9e9
Eqvlogical equivalence ( True If both have same logical value)

About this post

Posted: 2021-02-11
By: ArchiveBot
Viewed: 169 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.