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. purchased code from who knows where

purchased code from who knows where

Scheduled Pinned Locked Moved The Weird and The Wonderful
6 Posts 6 Posters 17 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.
  • R Offline
    R Offline
    rnbergren
    wrote on last edited by
    #1

    apparently my company that is merged with another company and then split. Somewhere along the line. They(not sure who they is) bought some old ASP code for doing some calculations. Top of every ASP Page `if strCurrentUserID = blnAdm OR blnPL then` where strCurrentUSerID is something like 'rnbergren' and blnAdm and blnPL is a true/false value. REwriting the entire thing to be `if (blnAdm or blnPL) then` gesh! the really fun thing is this has been in production for years! I mean years!

    To err is human to really mess up you need a computer

    Z P R L 4 Replies Last reply
    0
    • R rnbergren

      apparently my company that is merged with another company and then split. Somewhere along the line. They(not sure who they is) bought some old ASP code for doing some calculations. Top of every ASP Page `if strCurrentUserID = blnAdm OR blnPL then` where strCurrentUSerID is something like 'rnbergren' and blnAdm and blnPL is a true/false value. REwriting the entire thing to be `if (blnAdm or blnPL) then` gesh! the really fun thing is this has been in production for years! I mean years!

      To err is human to really mess up you need a computer

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      rnbergren wrote:

      this has been in production for years! I mean years!

      Then don't fix what aint broken. ;)

      Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

      J 1 Reply Last reply
      0
      • R rnbergren

        apparently my company that is merged with another company and then split. Somewhere along the line. They(not sure who they is) bought some old ASP code for doing some calculations. Top of every ASP Page `if strCurrentUserID = blnAdm OR blnPL then` where strCurrentUSerID is something like 'rnbergren' and blnAdm and blnPL is a true/false value. REwriting the entire thing to be `if (blnAdm or blnPL) then` gesh! the really fun thing is this has been in production for years! I mean years!

        To err is human to really mess up you need a computer

        P Offline
        P Offline
        phil o
        wrote on last edited by
        #3

        That strange feeling when you don't understand why some code is working :) Been there.

        "Five fruits and vegetables a day? What a joke! Personally, after the third watermelon, I'm full."

        1 Reply Last reply
        0
        • R rnbergren

          apparently my company that is merged with another company and then split. Somewhere along the line. They(not sure who they is) bought some old ASP code for doing some calculations. Top of every ASP Page `if strCurrentUserID = blnAdm OR blnPL then` where strCurrentUSerID is something like 'rnbergren' and blnAdm and blnPL is a true/false value. REwriting the entire thing to be `if (blnAdm or blnPL) then` gesh! the really fun thing is this has been in production for years! I mean years!

          To err is human to really mess up you need a computer

          R Offline
          R Offline
          RickZeeland
          wrote on last edited by
          #4

          You need some ASPirin :-\

          1 Reply Last reply
          0
          • R rnbergren

            apparently my company that is merged with another company and then split. Somewhere along the line. They(not sure who they is) bought some old ASP code for doing some calculations. Top of every ASP Page `if strCurrentUserID = blnAdm OR blnPL then` where strCurrentUSerID is something like 'rnbergren' and blnAdm and blnPL is a true/false value. REwriting the entire thing to be `if (blnAdm or blnPL) then` gesh! the really fun thing is this has been in production for years! I mean years!

            To err is human to really mess up you need a computer

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

            rnbergren wrote:

            REwriting the entire thing to be `if (blnAdm or blnPL) then` gesh!

            Ctrl-Shift-H, and replace an entire team. Bidding starts at 40k/annum.

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

            1 Reply Last reply
            0
            • Z ZurdoDev

              rnbergren wrote:

              this has been in production for years! I mean years!

              Then don't fix what aint broken. ;)

              Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

              J Offline
              J Offline
              John R Shaw
              wrote on last edited by
              #6

              Just because it works does not mean that it is not broken. It is amazing the number of things duck-tape will fix.

              INTP "Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra "I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone

              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