Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

VISUAL BASIC 4EVAR

Name: Anonymous 2006-04-02 23:15

DIM THISTHREAD AS STRING
DIM NUMBER AS INTEGER

IF THISTHREAD = SUCKS THEN
     MSGBOX("PENIS",VBYESNO,"MESSAGE")
ELSE
     FOR NUMBER = 1 TO 10
          NUMBER=1
     NEXT
END IF

    

Name: Anonymous 2006-04-03 0:58

SUCKS is undefined

Name: Anonymous 2006-04-03 1:14 (sage)

This board keeps hitting new lows.

Name: Anonymous 2006-04-03 1:49

>>2
He doesn't have the line "OPTION EXPLICIT", so I think SUCKS will be implicitly declared as a Variant. I'm not sure what value it would be initialized to though.

Name: Anonymous 2006-04-03 3:39

If you were a real veebee "programmer" you'd know that the IDE won't let you type in all caps like that, because Microsoft doesn't trust you with capitalization. This mistrust is well founded. Here's what I get after copy-pastage:
Dim THISTHREAD As String
Dim NUMBER As Integer

If THISTHREAD = SUCKS Then
     MsgBox "PENIS", vbYesNo, "MESSAGE"
Else
     For NUMBER = 1 To 10
          NUMBER = 1
     Next
End If

Note that I had to remove the parens from your MsgBox call, since it was flagged as invalid syntax because you're not using the return value for anything. Don't feel bad, I get caught out by this all the time; it's just another example of veebee's pointlessly retarded syntax rules.

I guess an uninitialised variant is considered to be an empty string when used in comparison against an actual string, because I got a nice MsgBox informing me about PENIS rather than the infinite loop you were kind enough to include in your code.

In conclusion, I fucking hate my job, please let me either die, or get a job programming in a language that doesn't suck worse than Java, or get a job as network admin in a girls' highschool.

Name: Anonymous 2006-04-03 6:24

I liked the old QuickBasic better when all keywords were uppercase.

Name: Anonymous 2006-04-03 12:24 (sage)

>>1
>:O

Name: Anonymous 2006-04-03 12:25

>>1
Die in a fire.

Name: Anonymous 2006-04-03 14:03

string doseitsuck
}
cout >> "dose this thread suck?" >> endl;
cin << doseitsuck

if(doseitsuck == yes)
{
cout >> "you win!" >>endl;
}
if(doseitsuck == no)
{
cout >> "you fail, have a furry" >> endl;
}
}

lol

Name: Anonymous 2006-04-03 14:18

>>9
Don't you EVER, EVER write code again. EVER.

Name: Anonymous 2006-04-03 15:28

>>9
lol cout

Name: Anonymous 2006-04-03 15:56

>>10-11
WTF? Do better or GTFO!

Name: Anonymous 2006-04-03 17:15 (sage)

>>12
#include <cstdio>

int main(int argc, char ** argv) {
    puts("This thread fucking sucks.");
    return 0;
}

Name: Anonymous 2006-04-03 17:22

Hahaha, oh wow, >>9. That's nasty.

Name: Anonymous 2006-04-03 18:32

"... or get a job as network admin in a girls' highschool."

YES!

Name: Anonymous 2006-04-03 19:22

>>9
HAHAHA wtf is this shit? Are you an aboriginal?

Name: Anonymous 2006-04-03 19:40

>>9
That wouldn't even compile!

Name: Anonymous 2006-04-03 21:29

WTF you fags,

print "This thread fucking sucks"

Name: Anonymous 2006-04-04 6:07

Option Explicit

Dim THISTHREAD As String
Dim NUMBER As Integer
Dim SUCKS As string

SUCKS = UCASE(http://www.world4ch.org/prog/#1144033928)

If THISTHREAD = SUCKS Then
     MsgBox "PENIS", vbYesNo, "MESSAGE"
Else
     For NUMBER = 1 To 10
          NUMBER = 1
          Beep
     Next
End If

Name: Anonymous 2009-01-14 5:04

>>3
Visual Basic isn't that bad

Name: Anonymous 2011-01-31 20:05

<-- check em dubz

Don't change these.
Name: Email:
Entire Thread Thread List