The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Stupid VB Question. Is true equal to 0 or 1? by spud312006-09-14 08:20:05
  OK, just checking by SnappingTurtle 2006-09-14 08:55:47
Almost every time I hear this question, it's because someone wants to query a database and they want to know if the expression should be
where MyBooleanField = 1
or
where MyBooleanField = -1
or something like that. So, in case that's your quest, the answer is:
where MyBooleanField
or
where not MyBooleanField
A boolean field is itself already a complete boolean expression, so you don't need to check if it's equal to something. It's already true or false.
[ Reply ]
    See her final post to me. She's trying to set by merlin2006-09-14 09:39:57

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)