Announcement

Collapse
No announcement yet.

Possible function main bug

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

  • Possible function main bug

    I had a line of code like this...


    function main (var1, var2....){


    I then commented out that code with two slashes and changed added a line like this...

    function main (){

    All of the original var1, var2. etc STILL showed up in the Edit Studies list of variables even with the original line commented out.

    I had to delete the words function and main from the commented out line to get the Edit Studies menu to apear 'correctly'

    Is this a bug?

  • #2
    try this...

    try REMOVING the study then reloading it..

    I have the same problem if I use EDIT STUDIES to modify values.. the only way to get them back to the original settings is to REMOVE then RELOAD.

    B
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      If that does work, try changing the commented main to something other than main()...line nain(). There was a bug where EFS would find the first time the keyword main() was used and use that, even if it was commented out.

      Garth
      Garth

      Comment


      • #4
        Dave,

        I have had similar instances where I get myself into that situation. As Brad indicated, the only way to reset them is to remove and reload, based on my experience. Commenting out main(), as Garth indicated will also get you into trouble. Here is a link regarding commented out main()

        link and another link2

        Regards,
        Last edited by Guest; 05-08-2004, 03:59 PM.

        Comment


        • #5
          Thanks guys...

          I did reload the efs after removing and the same issue was apparent.

          Removing the words

          function main

          from the commented out section seems to be the solution.

          Comment

          Working...
          X