Search Tools Links Login

SIMPLE way to reverse the value of a Boolean field


Visual Basic 6, or VB Classic

This is an extremely easy method of reversing the value of a Boolean value.

Original Author: Derreck Dean

Code


If you have ever done this:


IF someBoolean = TRUE THEN

   someBoolean = FALSE

ELSE

   someBoolean = TRUE

END IF


Here's an easier method:


someBoolean = NOT someBoolean.


That's it... vote if you like.


- Derreck

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 82 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.