|
-
Jun 16th, 2014, 08:21 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Val(True) = 0. Why?
We all know that in vb6, boolean values are True = -1 and false = 0.
But if you wrap a boolean value in a Val function, it always returns 0, whatever it's original value.
Val(-1) = -1.
Val(True) = 0.
That can't be right.
(Okay, you might ask why I'm wrapping a boolean in a Val function; it's a long story which I won't go into now as it's besides the point).
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
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
|