vb studio 2k8 humor

View previous topic View next topic Go down

vb studio 2k8 humor

Post by The MacGuffin on Fri Apr 23, 2010 6:17 pm

Reading help files can always be a little bit funny if the coder responsible is bored enough. Here's a mild joke I found.

avatar
The MacGuffin
Ali Babba
Ali Babba

Number of posts : 201
Registration date : 2010-02-18

Back to top Go down

Re: vb studio 2k8 humor

Post by TheCollectiveUnconscious on Mon Apr 26, 2010 9:53 am

lol thats pretty awesome... but in all honesty i wish you could just use
if (string.compareToIgnoreCase(STRING)==0)
{
}
like in java

_________________
LugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeot

avatar
TheCollectiveUnconscious
Forum Tech-Wizard
Forum Tech-Wizard

Male
Number of posts : 518
Age : 25
Registration date : 2010-02-05

http://ubuntuforums.org/member.php?u=1006496

Back to top Go down

Re: vb studio 2k8 humor

Post by The MacGuffin on Wed Apr 28, 2010 3:54 pm

I'm not familiar with java but doesn't == mean 'does not equal'?

So in layman's terms, as long as the string matches this string regardless of case and has at least one letter do the following.
avatar
The MacGuffin
Ali Babba
Ali Babba

Number of posts : 201
Registration date : 2010-02-18

Back to top Go down

Re: vb studio 2k8 humor

Post by TheCollectiveUnconscious on Thu Apr 29, 2010 2:11 pm

no in java and other high level languages = assigns a value to a variable == compares two variables (equals) != is doesn't equal

basically what that snippet of code meant was:
string.compareToIgnoreCase(STRING) //compares two strings (ignores case) and assigns a boolean value, 0 for true and 1 for false (i know its backwards :p) the ==0 compares the two values and the if statement only executes if the statement is true.

so basically exactly what you said lol

_________________
LugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeot

avatar
TheCollectiveUnconscious
Forum Tech-Wizard
Forum Tech-Wizard

Male
Number of posts : 518
Age : 25
Registration date : 2010-02-05

http://ubuntuforums.org/member.php?u=1006496

Back to top Go down

Re: vb studio 2k8 humor

Post by The MacGuffin on Fri Apr 30, 2010 1:29 am

Wow, I was both wrong and right in the same breath.
avatar
The MacGuffin
Ali Babba
Ali Babba

Number of posts : 201
Registration date : 2010-02-18

Back to top Go down

Re: vb studio 2k8 humor

Post by TheCollectiveUnconscious on Fri Apr 30, 2010 12:46 pm

i know i'm impressed lol

_________________
LugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeotLugiaPidgeot

avatar
TheCollectiveUnconscious
Forum Tech-Wizard
Forum Tech-Wizard

Male
Number of posts : 518
Age : 25
Registration date : 2010-02-05

http://ubuntuforums.org/member.php?u=1006496

Back to top Go down

Re: vb studio 2k8 humor

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum