Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Comparison and goto

Comparison and goto

Scheduled Pinned Locked Moved The Weird and The Wonderful
rubytutorialquestionlearning
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #1

    This little gem comes courtesy of Q&A:

    If TextBox9.Text > TextBox8.Text Then
    GoTo bob
    Else : TextBox9.Text = TextBox8.Text
    End If
    Bob:

    Lovely, no? Not only that, but he wanted to know why it didn't put the largest number in TextBox9 when TextBox9 had "999" and TextBox8 had "1000". Sometimes, I get the feeling we should ask who these people are learning from, and have a "hall of shame" just for them...

    Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    F Sander RosselS B H 4 Replies Last reply
    0
    • OriginalGriffO OriginalGriff

      This little gem comes courtesy of Q&A:

      If TextBox9.Text > TextBox8.Text Then
      GoTo bob
      Else : TextBox9.Text = TextBox8.Text
      End If
      Bob:

      Lovely, no? Not only that, but he wanted to know why it didn't put the largest number in TextBox9 when TextBox9 had "999" and TextBox8 had "1000". Sometimes, I get the feeling we should ask who these people are learning from, and have a "hall of shame" just for them...

      Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

      F Offline
      F Offline
      Fabio V Silva
      wrote on last edited by
      #2

      OriginalGriff wrote:

      GoTo bob

      He came to the right place :-D

      OriginalGriffO 1 Reply Last reply
      0
      • F Fabio V Silva

        OriginalGriff wrote:

        GoTo bob

        He came to the right place :-D

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        It's about the only thing he did do right! :laugh:

        Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          This little gem comes courtesy of Q&A:

          If TextBox9.Text > TextBox8.Text Then
          GoTo bob
          Else : TextBox9.Text = TextBox8.Text
          End If
          Bob:

          Lovely, no? Not only that, but he wanted to know why it didn't put the largest number in TextBox9 when TextBox9 had "999" and TextBox8 had "1000". Sometimes, I get the feeling we should ask who these people are learning from, and have a "hall of shame" just for them...

          Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

          Sander RosselS Offline
          Sander RosselS Offline
          Sander Rossel
          wrote on last edited by
          #4

          I hope he does not read this. Poor guy came here asking for help, but instead he gets flamed in the hall of shame. Of course it is something to be ashamed of :laugh:

          OriginalGriff wrote:

          we should ask who these people are learning from

          Judging from the code I think this guy's mentor is called Bob ;p

          It's an OO world.

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            This little gem comes courtesy of Q&A:

            If TextBox9.Text > TextBox8.Text Then
            GoTo bob
            Else : TextBox9.Text = TextBox8.Text
            End If
            Bob:

            Lovely, no? Not only that, but he wanted to know why it didn't put the largest number in TextBox9 when TextBox9 had "999" and TextBox8 had "1000". Sometimes, I get the feeling we should ask who these people are learning from, and have a "hall of shame" just for them...

            Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

            B Offline
            B Offline
            BillW33
            wrote on last edited by
            #5

            It’s really bad when they don't get even the most basic things. I sincerely hope this was from a beginning student, not someone with a degree in Computer Science. :sigh:

            Just because the code works, it doesn't mean that it is good code.

            L 1 Reply Last reply
            0
            • B BillW33

              It’s really bad when they don't get even the most basic things. I sincerely hope this was from a beginning student, not someone with a degree in Computer Science. :sigh:

              Just because the code works, it doesn't mean that it is good code.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              In reality, I have seen people with a masters degree in Computer Science writing this kind of code.

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                This little gem comes courtesy of Q&A:

                If TextBox9.Text > TextBox8.Text Then
                GoTo bob
                Else : TextBox9.Text = TextBox8.Text
                End If
                Bob:

                Lovely, no? Not only that, but he wanted to know why it didn't put the largest number in TextBox9 when TextBox9 had "999" and TextBox8 had "1000". Sometimes, I get the feeling we should ask who these people are learning from, and have a "hall of shame" just for them...

                Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

                H Offline
                H Offline
                H Brydon
                wrote on last edited by
                #7

                OriginalGriff wrote:

                If TextBox9.Text > TextBox8.Text Then
                GoTo bob
                Else : TextBox9.Text = TextBox8.Text
                End If
                Bob:

                What I get out of this is that your real name is 'bob'. Wherein lies the mystery?

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups