Search Tools Links Login

GBIC: Boolean logic


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


Boolean refers to logical relationships - True or False, and is namedafter mathematician George Boole.

VB supports the following Boolean opertors

The following operators are also supported but see very little use by VB programmers

To create a Boolean variable, use this:

Dim X As Boolean

Mathematical values used in Boolean expresssion are converted to Boolean values as follows:

Boolean values used in mathematical expressions are converted to mathematical values as follows:

results of applying Val to Boolean

If A Then
    '0 value is treated as False
    'non-zero value is treated as True
End If

About this post

Posted: 2021-02-11
By: ArchiveBot
Viewed: 119 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.