Announcement

Collapse
No announcement yet.

Big Problem with Function Parameters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Big Problem with Function Parameters

    I could not get function parameters to work properly in my script. I left that part until now. I need to use function parameters to dynamically turn debugging on and off.

    I noticed through hours of debugging, if I just modify the contents of a comment prior to the definition of the Array used to hold the function parameters, I can edit or not edit the function parameters for my study, depending on the length and content of my comments just prior to the Array.

    This is a big problem. Can someone look into this right away? Maybe I did something wrong but I doubt it. The scripts are attached. If this is failing, I am worried about other bugs I see popping up in my script. I don't know if it is a bug also or my mistake. For now, I will assume it is my error until proven otherwise.

    All test scripts attached.
    Attached Files

  • #2
    Script that works
    Attached Files

    Comment


    • #3
      Version 4 also works with minor changes to the comments
      Attached Files

      Comment


      • #4
        Final test version 6 does not work.
        Attached Files

        Comment


        • #5
          crazytiger,

          I am not sure what you are after, seems to me that you are publishing someones' proprietary code and anyone that messes with it is given notice (based upon this excerpt that you have posted on a public forum...) that legal action will be taken upon them. Perhaps you should ask the author.

          PHP Code:
          ***************************************************************************************************
          Copyright Â© 2006. 2003. All rights reserved
          This eSignal Formula Script (EFSis the sole proprietaryconfidential property of 
          It's contents may not be examined except by it's legal ownerAny such reverse engineeringviewing,
          or 
          dissemination of this code will result in civil litigation to recover the cost of development and
          trade secrets

          Originally posted by crazytiger
          Final test version 6 does not work.

          Comment


          • #6
            Steve, this is my own proprietary code.
            I took out the header comment except for that piece because I had comments I didn't want others to see.

            Why would you say something like this?
            The code that is shown there is so basic, how can you even say something like that?

            Can you just answer my post?
            If this is a bug, it is a big one when code does not get executed because the comments change.

            Maybe I am doing something wrong but it seems difficult to comprehend.

            Comment


            • #7
              Another reason I took my name off the proprietary comment at the top is I don't want people on the bulletin board to see my real name.

              If you require the proprietary comment at the top to be removed before you can examine the test scripts, I will re-post them.

              Comment


              • #8
                Here's ver 3 with the top comment removed.
                Attached Files

                Comment


                • #9
                  Here's ver 4 with the comment at the top removed.

                  (ver 3 still does not work. ver 4 works)
                  Attached Files

                  Comment


                  • #10
                    Hi crazytiger,

                    I was able to get this to work when I eliminated all of the blank spaces from your variable declarations in the FunctionParameter objects. Try copying some code from the eSignal advanced formulas directory and compare it to the other code you had posted. I believe you will see the difference.

                    btw, I had recognized the pattern of the code you had posted was the same pattern as some old code from another person on the forum, all the way down to the blank spaces. I find this a bit curious.
                    Last edited by Guest; 02-15-2007, 08:32 PM.

                    Comment


                    • #11
                      crazytiger,

                      The problem you are seeing is due to having "main()" commented in your efs. This is a known issue, not a bug. Even though it is commented out, it still is seen by the compiler as a second "main". Remove the parenthesis and the problem goes away. In my testing I had removed all the blank spaces from the efs, in effect eliminating this additional instance of main().

                      Comment


                      • #12
                        Thank you Steve.

                        But if something is commented out and the compiler sees it as a non-comment, isn't this a bug? I didn't see this noted anywhere in the documentation.

                        Comment


                        • #13
                          crazytiger,

                          You are launching a JavaScript program from within another application. This has to do with how the software eSignal wrote launches a JavaScript application from within a separate application. This behavior has been seen before and is documented in the forum. I did a search on this morning and found this link:

                          commented main()
                          .


                          Originally posted by crazytiger
                          Thank you Steve.

                          But if something is commented out and the compiler sees it as a non-comment, isn't this a bug? I didn't see this noted anywhere in the documentation.

                          Comment


                          • #14
                            Hello crazytiger,

                            Originally posted by crazytiger
                            Thank you Steve.

                            But if something is commented out and the compiler sees it as a non-comment, isn't this a bug? I didn't see this noted anywhere in the documentation.
                            This is a known issue and there is an explanation regarding this in Beginner Tutorial 3, section 3.1.5. Yes, we can call it a bug and I will send another note on this issue to our development group.
                            Jason K.
                            Project Manager
                            eSignal - an Interactive Data company

                            EFS KnowledgeBase
                            JavaScript for EFS Video Series
                            EFS Beginner Tutorial Series
                            EFS Glossary
                            Custom EFS Development Policy

                            New User Orientation

                            Comment

                            Working...
                            X