vb studio 2k8 humor
Page 1 of 1 • Share •
vb studio 2k8 humor
Reading help files can always be a little bit funny if the coder responsible is bored enough. Here's a mild joke I found.




The MacGuffin- Ali Babba
- Number of posts : 201
Registration date : 2010-02-18
Re: vb studio 2k8 humor
lol thats pretty awesome... but in all honesty i wish you could just use
if (string.compareToIgnoreCase(STRING)==0)
{
}
like in java
if (string.compareToIgnoreCase(STRING)==0)
{
}
like in java
_________________





















Re: vb studio 2k8 humor
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.
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.
The MacGuffin- Ali Babba
- Number of posts : 201
Registration date : 2010-02-18
Re: vb studio 2k8 humor
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
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
_________________





















Re: vb studio 2k8 humor
Wow, I was both wrong and right in the same breath. 

The MacGuffin- Ali Babba
- Number of posts : 201
Registration date : 2010-02-18

» Deceptic Optics Toy Photography
» Universal Studios Billboard
» [Humor RP Thread] The Break room
» James Gandolfini (Tony Soprano) on Inside The Actors Studio
» Top ten Studio Ghibli!
» Universal Studios Billboard
» [Humor RP Thread] The Break room
» James Gandolfini (Tony Soprano) on Inside The Actors Studio
» Top ten Studio Ghibli!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|