Odd Error (Function not Defined)?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #31
    Originally posted by javaman
    I'm not getting it I'm afraid, I think I have been working on it too long, think I'll take a break.
    shut down the computer, take a walk in the park. this usually will get you relaxed and maybe enlightened back.

    Comment

    • javaman
      New Member
      • May 2009
      • 10

      #32
      Hi

      I have move the return false line down

      [removed code]

      Unfortunately it still isn't working. It only seems to be the first entry which thinks it has already been entered, after that it works fine.

      Any ideas

      Thanks:-)

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #33
        There must be a problem in your code where you call this function. Follow the values/variables you enter and set either using a debugger or adding a few alerts.

        Comment

        • javaman
          New Member
          • May 2009
          • 10

          #34
          That good news, at least I know the function is now right.

          Where can I get a debugger?

          Thanks again

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #35
            I'd recommend Firebug (for Firefox), but a lite version is available for other browsers.

            Comment

            • javaman
              New Member
              • May 2009
              • 10

              #36
              Hi

              I have cracked it!

              I had 'chosenNumbers[index3] = newNumber;' in twice

              I am so grateful to everyone here who has spared the time to help me through.

              Thanks:-)

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #37
                Glad you solved it yourself in the end. That's how it should be. Thanks for posting.

                Comment

                Working...