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. Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all?

Where may I find this person, their immediate family, anscestors and future descendants so I may take revenge upon them all?

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
9 Posts 8 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 Offline
    W Offline
    Wes Jones
    wrote on last edited by
    #1

    If Something() Then
    lblpnl10(1).Caption = GetCaptionText(10977, lblpnl10(1).Caption)
    lblpnl10(0).Caption = GetCaptionText(10978, lblpnl10(0).Caption)
    frapnl10(0).Caption = GetCaptionText(10979, frapnl10(0).Caption)
    chkKeepOrigRadioName.Caption = GetCaptionText(10980, chkKeepOrigRadioName.Caption)
    lblpnl03(14).Caption = GetCaptionText(10981, lblpnl03(14).Caption)
    lblpnl03(13).Caption = GetCaptionText(10982, lblpnl03(13).Caption)
    Frame12.Caption = GetCaptionText(10983, Frame12.Caption)
    Label13.Caption = GetCaptionText(10984, Label13.Caption)
    Label5.Caption = GetCaptionText(10985, Label5.Caption)
    Label14.Caption = GetCaptionText(10986, Label14.Caption)
    Frame9.Caption = GetCaptionText(10987, Frame9.Caption)
    chkLogLateShiftEnd.Caption = GetCaptionText(10988, chkLogLateShiftEnd.Caption)
    ....48 more
    End If

    L K D J L 6 Replies Last reply
    0
    • W Wes Jones

      If Something() Then
      lblpnl10(1).Caption = GetCaptionText(10977, lblpnl10(1).Caption)
      lblpnl10(0).Caption = GetCaptionText(10978, lblpnl10(0).Caption)
      frapnl10(0).Caption = GetCaptionText(10979, frapnl10(0).Caption)
      chkKeepOrigRadioName.Caption = GetCaptionText(10980, chkKeepOrigRadioName.Caption)
      lblpnl03(14).Caption = GetCaptionText(10981, lblpnl03(14).Caption)
      lblpnl03(13).Caption = GetCaptionText(10982, lblpnl03(13).Caption)
      Frame12.Caption = GetCaptionText(10983, Frame12.Caption)
      Label13.Caption = GetCaptionText(10984, Label13.Caption)
      Label5.Caption = GetCaptionText(10985, Label5.Caption)
      Label14.Caption = GetCaptionText(10986, Label14.Caption)
      Frame9.Caption = GetCaptionText(10987, Frame9.Caption)
      chkLogLateShiftEnd.Caption = GetCaptionText(10988, chkLogLateShiftEnd.Caption)
      ....48 more
      End If

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      you should order those statements alphabetically; that improves maintainability. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
      [The QA section does it automatically now, I hope we soon get it on regular forums as well]


      1 Reply Last reply
      0
      • W Wes Jones

        If Something() Then
        lblpnl10(1).Caption = GetCaptionText(10977, lblpnl10(1).Caption)
        lblpnl10(0).Caption = GetCaptionText(10978, lblpnl10(0).Caption)
        frapnl10(0).Caption = GetCaptionText(10979, frapnl10(0).Caption)
        chkKeepOrigRadioName.Caption = GetCaptionText(10980, chkKeepOrigRadioName.Caption)
        lblpnl03(14).Caption = GetCaptionText(10981, lblpnl03(14).Caption)
        lblpnl03(13).Caption = GetCaptionText(10982, lblpnl03(13).Caption)
        Frame12.Caption = GetCaptionText(10983, Frame12.Caption)
        Label13.Caption = GetCaptionText(10984, Label13.Caption)
        Label5.Caption = GetCaptionText(10985, Label5.Caption)
        Label14.Caption = GetCaptionText(10986, Label14.Caption)
        Frame9.Caption = GetCaptionText(10987, Frame9.Caption)
        chkLogLateShiftEnd.Caption = GetCaptionText(10988, chkLogLateShiftEnd.Caption)
        ....48 more
        End If

        K Offline
        K Offline
        Keith Barrow
        wrote on last edited by
        #3

        Wow, this guy knows nothing, look at all those magic numbers, how are you meant to know what they mean?

            Const Number1 As Int32 = 0
            Const Number2 As Int32 = 1
            Const Number3 As Int32 = 13
            Const Number4 As Int32 = 14
            Const Number5 As Int32 = 10977
            Const Number6 As Int32 = 10978
            Const Number7 As Int32 = 10979
            Const Number8 As Int32 = 10980
            Const Number9 As Int32 = 10981
            Const Number10 As Int32 = 10982
            Const Number11 As Int32 = 10983
            Const Number12 As Int32 = 10984
            Const Number13 As Int32 = 10985
            Const Number14 As Int32 = 10986
            Const Number15 As Int32 = 10987
            Const Number16 As Int32 = 10988
        
            If Something() Then
                chkLogLateShiftEnd.Caption = GetCaptionText(Number16, chkLogLateShiftEnd.Caption)
                chkKeepOrigRadioName.Caption = GetCaptionText(Number8, chkKeepOrigRadioName.Caption)
                Frame9.Caption = GetCaptionText(Number15, Frame9.Caption)
                Frame12.Caption = GetCaptionText(Number11, Frame12.Caption)
                frapnl10(Number1).Caption = GetCaptionText(Number7, frapnl10(Number1).Caption)
                Label13.Caption = GetCaptionText(Number12, Label13.Caption)
                Label14.Caption = GetCaptionText(Number14, Label14.Caption)
                Label5.Caption = GetCaptionText(Number13, Label5.Caption)
                lblpnl03(Number4).Caption = GetCaptionText(Number9, lblpnl03(Number4).Caption)
                lblpnl03(Number3).Caption = GetCaptionText(Number10, lblpnl03(Number3).Caption)
                lblpnl10(Number2).Caption = GetCaptionText(Number5, lblpnl10(Number2).Caption)
                lblpnl10(Number1).Caption = GetCaptionText(Number6, lblpnl10(Number1).Caption)
            End If
        

        FTFY :-) (Yes, it is a slow day at work)

        CCC solved so far: 2 (including a Hard One!) 37!?!! - Randall, Clerks

        W N 2 Replies Last reply
        0
        • W Wes Jones

          If Something() Then
          lblpnl10(1).Caption = GetCaptionText(10977, lblpnl10(1).Caption)
          lblpnl10(0).Caption = GetCaptionText(10978, lblpnl10(0).Caption)
          frapnl10(0).Caption = GetCaptionText(10979, frapnl10(0).Caption)
          chkKeepOrigRadioName.Caption = GetCaptionText(10980, chkKeepOrigRadioName.Caption)
          lblpnl03(14).Caption = GetCaptionText(10981, lblpnl03(14).Caption)
          lblpnl03(13).Caption = GetCaptionText(10982, lblpnl03(13).Caption)
          Frame12.Caption = GetCaptionText(10983, Frame12.Caption)
          Label13.Caption = GetCaptionText(10984, Label13.Caption)
          Label5.Caption = GetCaptionText(10985, Label5.Caption)
          Label14.Caption = GetCaptionText(10986, Label14.Caption)
          Frame9.Caption = GetCaptionText(10987, Frame9.Caption)
          chkLogLateShiftEnd.Caption = GetCaptionText(10988, chkLogLateShiftEnd.Caption)
          ....48 more
          End If

          D Offline
          D Offline
          Distind
          wrote on last edited by
          #4

          I used to work with a framework that lived off of that. Piles of magic numbers, created by a mechanical engineer of course. Worked well enough so long as you had the right spreadsheets printed out and wallpapered your cube with them, I assume you have no such spread sheets.

          1 Reply Last reply
          0
          • W Wes Jones

            If Something() Then
            lblpnl10(1).Caption = GetCaptionText(10977, lblpnl10(1).Caption)
            lblpnl10(0).Caption = GetCaptionText(10978, lblpnl10(0).Caption)
            frapnl10(0).Caption = GetCaptionText(10979, frapnl10(0).Caption)
            chkKeepOrigRadioName.Caption = GetCaptionText(10980, chkKeepOrigRadioName.Caption)
            lblpnl03(14).Caption = GetCaptionText(10981, lblpnl03(14).Caption)
            lblpnl03(13).Caption = GetCaptionText(10982, lblpnl03(13).Caption)
            Frame12.Caption = GetCaptionText(10983, Frame12.Caption)
            Label13.Caption = GetCaptionText(10984, Label13.Caption)
            Label5.Caption = GetCaptionText(10985, Label5.Caption)
            Label14.Caption = GetCaptionText(10986, Label14.Caption)
            Frame9.Caption = GetCaptionText(10987, Frame9.Caption)
            chkLogLateShiftEnd.Caption = GetCaptionText(10988, chkLogLateShiftEnd.Caption)
            ....48 more
            End If

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

            Didn't they give you the secret decoder ring? :omg:

            1 Reply Last reply
            0
            • K Keith Barrow

              Wow, this guy knows nothing, look at all those magic numbers, how are you meant to know what they mean?

                  Const Number1 As Int32 = 0
                  Const Number2 As Int32 = 1
                  Const Number3 As Int32 = 13
                  Const Number4 As Int32 = 14
                  Const Number5 As Int32 = 10977
                  Const Number6 As Int32 = 10978
                  Const Number7 As Int32 = 10979
                  Const Number8 As Int32 = 10980
                  Const Number9 As Int32 = 10981
                  Const Number10 As Int32 = 10982
                  Const Number11 As Int32 = 10983
                  Const Number12 As Int32 = 10984
                  Const Number13 As Int32 = 10985
                  Const Number14 As Int32 = 10986
                  Const Number15 As Int32 = 10987
                  Const Number16 As Int32 = 10988
              
                  If Something() Then
                      chkLogLateShiftEnd.Caption = GetCaptionText(Number16, chkLogLateShiftEnd.Caption)
                      chkKeepOrigRadioName.Caption = GetCaptionText(Number8, chkKeepOrigRadioName.Caption)
                      Frame9.Caption = GetCaptionText(Number15, Frame9.Caption)
                      Frame12.Caption = GetCaptionText(Number11, Frame12.Caption)
                      frapnl10(Number1).Caption = GetCaptionText(Number7, frapnl10(Number1).Caption)
                      Label13.Caption = GetCaptionText(Number12, Label13.Caption)
                      Label14.Caption = GetCaptionText(Number14, Label14.Caption)
                      Label5.Caption = GetCaptionText(Number13, Label5.Caption)
                      lblpnl03(Number4).Caption = GetCaptionText(Number9, lblpnl03(Number4).Caption)
                      lblpnl03(Number3).Caption = GetCaptionText(Number10, lblpnl03(Number3).Caption)
                      lblpnl10(Number2).Caption = GetCaptionText(Number5, lblpnl10(Number2).Caption)
                      lblpnl10(Number1).Caption = GetCaptionText(Number6, lblpnl10(Number1).Caption)
                  End If
              

              FTFY :-) (Yes, it is a slow day at work)

              CCC solved so far: 2 (including a Hard One!) 37!?!! - Randall, Clerks

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

              and they say it's hard to improve upon perfection...

              1 Reply Last reply
              0
              • W Wes Jones

                If Something() Then
                lblpnl10(1).Caption = GetCaptionText(10977, lblpnl10(1).Caption)
                lblpnl10(0).Caption = GetCaptionText(10978, lblpnl10(0).Caption)
                frapnl10(0).Caption = GetCaptionText(10979, frapnl10(0).Caption)
                chkKeepOrigRadioName.Caption = GetCaptionText(10980, chkKeepOrigRadioName.Caption)
                lblpnl03(14).Caption = GetCaptionText(10981, lblpnl03(14).Caption)
                lblpnl03(13).Caption = GetCaptionText(10982, lblpnl03(13).Caption)
                Frame12.Caption = GetCaptionText(10983, Frame12.Caption)
                Label13.Caption = GetCaptionText(10984, Label13.Caption)
                Label5.Caption = GetCaptionText(10985, Label5.Caption)
                Label14.Caption = GetCaptionText(10986, Label14.Caption)
                Frame9.Caption = GetCaptionText(10987, Frame9.Caption)
                chkLogLateShiftEnd.Caption = GetCaptionText(10988, chkLogLateShiftEnd.Caption)
                ....48 more
                End If

                L Offline
                L Offline
                Lutoslaw
                wrote on last edited by
                #7

                It looks like the coder had asked "how to storr datas inside from classes plz help its urgent" on some forum but nobody answered him, so he/she put app data in invisible areas of caption texts. If it is true then try

                lblpnl10(0).AutoSize = True

                :laugh:

                Greetings - Jacek

                1 Reply Last reply
                0
                • W Wes Jones

                  If Something() Then
                  lblpnl10(1).Caption = GetCaptionText(10977, lblpnl10(1).Caption)
                  lblpnl10(0).Caption = GetCaptionText(10978, lblpnl10(0).Caption)
                  frapnl10(0).Caption = GetCaptionText(10979, frapnl10(0).Caption)
                  chkKeepOrigRadioName.Caption = GetCaptionText(10980, chkKeepOrigRadioName.Caption)
                  lblpnl03(14).Caption = GetCaptionText(10981, lblpnl03(14).Caption)
                  lblpnl03(13).Caption = GetCaptionText(10982, lblpnl03(13).Caption)
                  Frame12.Caption = GetCaptionText(10983, Frame12.Caption)
                  Label13.Caption = GetCaptionText(10984, Label13.Caption)
                  Label5.Caption = GetCaptionText(10985, Label5.Caption)
                  Label14.Caption = GetCaptionText(10986, Label14.Caption)
                  Frame9.Caption = GetCaptionText(10987, Frame9.Caption)
                  chkLogLateShiftEnd.Caption = GetCaptionText(10988, chkLogLateShiftEnd.Caption)
                  ....48 more
                  End If

                  J Offline
                  J Offline
                  Jorgen Andersson
                  wrote on last edited by
                  #8

                  I think he may have worked for us. But I must say that he seems to have improved with time.

                  1 Reply Last reply
                  0
                  • K Keith Barrow

                    Wow, this guy knows nothing, look at all those magic numbers, how are you meant to know what they mean?

                        Const Number1 As Int32 = 0
                        Const Number2 As Int32 = 1
                        Const Number3 As Int32 = 13
                        Const Number4 As Int32 = 14
                        Const Number5 As Int32 = 10977
                        Const Number6 As Int32 = 10978
                        Const Number7 As Int32 = 10979
                        Const Number8 As Int32 = 10980
                        Const Number9 As Int32 = 10981
                        Const Number10 As Int32 = 10982
                        Const Number11 As Int32 = 10983
                        Const Number12 As Int32 = 10984
                        Const Number13 As Int32 = 10985
                        Const Number14 As Int32 = 10986
                        Const Number15 As Int32 = 10987
                        Const Number16 As Int32 = 10988
                    
                        If Something() Then
                            chkLogLateShiftEnd.Caption = GetCaptionText(Number16, chkLogLateShiftEnd.Caption)
                            chkKeepOrigRadioName.Caption = GetCaptionText(Number8, chkKeepOrigRadioName.Caption)
                            Frame9.Caption = GetCaptionText(Number15, Frame9.Caption)
                            Frame12.Caption = GetCaptionText(Number11, Frame12.Caption)
                            frapnl10(Number1).Caption = GetCaptionText(Number7, frapnl10(Number1).Caption)
                            Label13.Caption = GetCaptionText(Number12, Label13.Caption)
                            Label14.Caption = GetCaptionText(Number14, Label14.Caption)
                            Label5.Caption = GetCaptionText(Number13, Label5.Caption)
                            lblpnl03(Number4).Caption = GetCaptionText(Number9, lblpnl03(Number4).Caption)
                            lblpnl03(Number3).Caption = GetCaptionText(Number10, lblpnl03(Number3).Caption)
                            lblpnl10(Number2).Caption = GetCaptionText(Number5, lblpnl10(Number2).Caption)
                            lblpnl10(Number1).Caption = GetCaptionText(Number6, lblpnl10(Number1).Caption)
                        End If
                    

                    FTFY :-) (Yes, it is a slow day at work)

                    CCC solved so far: 2 (including a Hard One!) 37!?!! - Randall, Clerks

                    N Offline
                    N Offline
                    NavnathKale
                    wrote on last edited by
                    #9

                    looks like VB reverse engineered code or generated using some tool

                    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