|
-
Nov 25th, 1999, 04:11 PM
#1
Thread Starter
Hyperactive Member
Is a boolean 2 byte in vb ??
-
Nov 25th, 1999, 05:16 PM
#2
Hyperactive Member
Yes, a boolean is 2 bit..
You can check it with the LenB function.
-
Nov 25th, 1999, 07:27 PM
#3
-
Nov 25th, 1999, 07:57 PM
#4
Thread Starter
Hyperactive Member
-
Nov 25th, 1999, 08:20 PM
#5
Yes, it's true! A boolean is actually an integer, so you will not save any memory on using it. It's just as fast as an integer though, and most important it's safe to use.
By safe I mean that you can't give it any other values than those intended (true or false). Actually the boolean data type didn't exist in VB before version 4. The reason it was included was to be used in classes where you wanted to have properties with only boolean values.
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|