Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / "OR" in VB

Author
Message
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 14th May 2008 04:05
I know this board is totally the wrong place to ask... but does anyone know how to say "OR" in VB... (as in "||" in C++)...

~~It's not who you are underneath, but what you do that defines you.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 14th May 2008 05:18 Edited at: 14th May 2008 05:22
I've already tried and it doesn't work... BTW, I'm using VB6, if that makes it different...

EDIT: WTF... I've been using VB since Grade 6 and everytime I tried that it didn't work... Just today before receiving your answer I tried it... Now I try it again... and...

IT WORKS... I DON'T GET IT!

~~It's not who you are underneath, but what you do that defines you.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th May 2008 05:31
Quote: "Logical versus BitWise Operations
The Not, And and Or operators work differently in VB.NET. In VB6 and earlier, these functions performed either logical or Bitwise operations depending on the context they were used in. If all their operands were of type boolean they performed logical operations. Otherwise they performed bitwise operations.

Now they will only perform logical operations. VB.NET introduces the BitAnd, BitOr, BitNot and BitXor keywords to perform bitwise operations.
"
from: http://www.thescarms.com/vbasic/vb6vsvbnet.aspx

Quote: "I've already tried and it doesn't work... "
Oh grasshopper...

Quote: "EDIT: WTF... I've been using VB since Grade 6 and everytime I tried that it didn't work... Just today before receiving your answer I tried it... Now I try it again... and...

IT WORKS... I DON'T GET IT!
"


But we all do ... You goofed ... LOL Not like I haven't done that before!

Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 14th May 2008 06:34
This is the third time this has happened... I tried something that I was perfectly sure was gonna work, but it doesn't... And try again and again different ways and it still doesn't work... Then I come the forums for help... I get the exact same solution to the problem I've tried... Just for the heck of it, I go back and try it again... And it works...

It's beyond me... ... Maybe I should do this more often as it helps get stuff to work...

~~It's not who you are underneath, but what you do that defines you.~~
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 14th May 2008 07:06
As an old classmate of mine used to say when things worked (or didn't work) like expected,

"It's an identity of nature!"

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 14th May 2008 07:37
Quote: "when things worked (or didn't work) like expected, "


That is actually also the definition of "irony."

Ugh,... irony...

~~It's not who you are underneath, but what you do that defines you.~~
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 14th May 2008 07:41
Is that a plug for Irony Infantry?

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th May 2008 07:54
Indeed...

Maybe I should have that Song "Ironic" as the theme song by Lana Morisett (spelling?) Like Raing... on your wedding day.. its like a free ride, when you already paid... hmmm hmmm....

...Ironic... don't ya think?

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 14th May 2008 17:58
Two (spelling?)s, methinks. I believe it's Alana Morissette.

(Yeah! I looked it up.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 14th May 2008 19:00
Alanis, actually.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 14th May 2008 19:06
Stoopid Google!!!

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 14th May 2008 19:08 Edited at: 14th May 2008 19:09
Now, can I admit that I knew that from remembering that she played God in "Dogma"?
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 14th May 2008 19:15
You can admit but I can't confirm. I don't get out much.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 14th May 2008 19:27
Neither do I, but I have cable.
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 16th May 2008 07:04 Edited at: 16th May 2008 07:04
Quote: "Is that a plug for Irony Infantry?"


No pun intended...

Quote: "Neither do I, but I have cable. "


LOL!

~~It's not who you are underneath, but what you do that defines you.~~

Login to post a reply

Server time is: 2024-09-29 21:31:31
Your offset time is: 2024-09-29 21:31:31