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. This is a pleasure to read.

This is a pleasure to read.

Scheduled Pinned Locked Moved The Weird and The Wonderful
help
11 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.
  • W Wes Jones
    Private Sub aLabel_AfterLabelEdit(Cancel As Integer, NewString As String)
    '+++ VB/Rig Begin Push +++
    Const VBRIG_PROC_ID_STRING = "+aLabel_AfterLabelEdit"
    Dim VBRigErr As Long, VBRigErrMsg As String
    If VBRig.Trap_TrapsEnabled Then
        On Error GoTo aLabel_AfterLabelEdit_VBRigErr
    End If
    Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
    '+++ VB/Rig End +++
      Cancel = True
    '+++ VB/Rig Begin Pop +++
    Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
    Exit Sub
    
    N Offline
    N Offline
    Nagy Vilmos
    wrote on last edited by
    #2

    0. Find the person who write this code. 1. Work out were they live. 2. Break into the home. 3. LEave a severed head in his head.


    Panic, Chaos, Destruction. My work here is done.

    1 Reply Last reply
    0
    • W Wes Jones
      Private Sub aLabel_AfterLabelEdit(Cancel As Integer, NewString As String)
      '+++ VB/Rig Begin Push +++
      Const VBRIG_PROC_ID_STRING = "+aLabel_AfterLabelEdit"
      Dim VBRigErr As Long, VBRigErrMsg As String
      If VBRig.Trap_TrapsEnabled Then
          On Error GoTo aLabel_AfterLabelEdit_VBRigErr
      End If
      Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
      '+++ VB/Rig End +++
        Cancel = True
      '+++ VB/Rig Begin Pop +++
      Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
      Exit Sub
      
      D Offline
      D Offline
      David Skelly
      wrote on last edited by
      #3

      It looks surprisingly similar to the code you posted two days ago under the heading "Where's Waldo".

      W 1 Reply Last reply
      0
      • D David Skelly

        It looks surprisingly similar to the code you posted two days ago under the heading "Where's Waldo".

        W Offline
        W Offline
        Wes Jones
        wrote on last edited by
        #4

        Yes, only this one was even a bigger horror especially since it only has one line of code that does anything & it's not even something that could raise an error. It's positively lovely.

        J 1 Reply Last reply
        0
        • W Wes Jones

          Yes, only this one was even a bigger horror especially since it only has one line of code that does anything & it's not even something that could raise an error. It's positively lovely.

          J Offline
          J Offline
          Jeremy Hutchinson
          wrote on last edited by
          #5

          I've seen this error rig code before. Sage Software has a utility in their MAS500 SDK that you can run to add error handle to all functions and subs that generates code very similar to this. There is no way anyone is hand writing that much error handling for "Cancel = True".

          W 1 Reply Last reply
          0
          • J Jeremy Hutchinson

            I've seen this error rig code before. Sage Software has a utility in their MAS500 SDK that you can run to add error handle to all functions and subs that generates code very similar to this. There is no way anyone is hand writing that much error handling for "Cancel = True".

            W Offline
            W Offline
            Wes Jones
            wrote on last edited by
            #6

            Yeah, I think this was a plug in which added this mess to all new functions/subs. They've since stopped using it, but it's still as one fugly mug when you see it, especially in something like this. Were I given a free reign, I'd be all over the my delete button right now.

            1 Reply Last reply
            0
            • W Wes Jones
              Private Sub aLabel_AfterLabelEdit(Cancel As Integer, NewString As String)
              '+++ VB/Rig Begin Push +++
              Const VBRIG_PROC_ID_STRING = "+aLabel_AfterLabelEdit"
              Dim VBRigErr As Long, VBRigErrMsg As String
              If VBRig.Trap_TrapsEnabled Then
                  On Error GoTo aLabel_AfterLabelEdit_VBRigErr
              End If
              Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
              '+++ VB/Rig End +++
                Cancel = True
              '+++ VB/Rig Begin Pop +++
              Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
              Exit Sub
              
              L Offline
              L Offline
              Lutoslaw
              wrote on last edited by
              #7

              This is a horror indeed, but one thing puzzles me:

              Wes Jones wrote:

              On Error GoTo aLabel_AfterLabelEdit_VBRigErr

              Does VB support "long jumps" or sth? I don't see a aLabel_AfterLabelEdit_VBRigErr anywhere...

              Greetings - Jacek

              W 1 Reply Last reply
              0
              • W Wes Jones
                Private Sub aLabel_AfterLabelEdit(Cancel As Integer, NewString As String)
                '+++ VB/Rig Begin Push +++
                Const VBRIG_PROC_ID_STRING = "+aLabel_AfterLabelEdit"
                Dim VBRigErr As Long, VBRigErrMsg As String
                If VBRig.Trap_TrapsEnabled Then
                    On Error GoTo aLabel_AfterLabelEdit_VBRigErr
                End If
                Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
                '+++ VB/Rig End +++
                  Cancel = True
                '+++ VB/Rig Begin Pop +++
                Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
                Exit Sub
                
                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                This code looks like it was generated by an automated tool for injecting error handling code.

                W 1 Reply Last reply
                0
                • L Lutoslaw

                  This is a horror indeed, but one thing puzzles me:

                  Wes Jones wrote:

                  On Error GoTo aLabel_AfterLabelEdit_VBRigErr

                  Does VB support "long jumps" or sth? I don't see a aLabel_AfterLabelEdit_VBRigErr anywhere...

                  Greetings - Jacek

                  W Offline
                  W Offline
                  Wes Jones
                  wrote on last edited by
                  #9

                  not that I know of.. it just doesn't care if the goto label there apparently.

                  1 Reply Last reply
                  0
                  • L Lost User

                    This code looks like it was generated by an automated tool for injecting error handling code.

                    W Offline
                    W Offline
                    Wes Jones
                    wrote on last edited by
                    #10

                    yes, it was. isn't it beautiful?

                    L 1 Reply Last reply
                    0
                    • W Wes Jones

                      yes, it was. isn't it beautiful?

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

                      You call it beautiful ? :sigh: :mad: :doh:

                      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