Announcement

Collapse
No announcement yet.

BUG global variable from comment

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

  • BUG global variable from comment

    When I have commented my php code like so on my OnLoad:
    /*
    if ([glob_role]=='AD')
    {
    sc_field_readonly({RUG_EMPLID_HRA}, 'on');
    {RUG_EMPLID_HRA}=[glob_user];
    }
    */

    then strangely enough glob_user will show up on the global variables of that form. That looks very much like a bug to me.
    [glob_user] is not in an uncommented line. Hence this is a bug (annoying).

  • #2
    Indeed. Have you tried to comment with // ? It might be a flaw in the SC Parser.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Hello,

      I have reported this issue to our bugs team for further testing.

      regards,
      Bernhard Bernsmann

      Comment


      • #4
        /*
        if ([glob_role]=='AD')
        {
        //dumb comment [glob_user]
        sc_field_readonly({RUG_EMPLID_HRA}, 'on');
        {RUG_EMPLID_HRA}=[glob_user];
        }
        */
        This one is screwwy too. The parser in the editor works fine, I just estimate that the parser in scriptcase is wrong.

        Comment


        • #5
          I had the same problem...
          so don't use [ ] in coments .... that's all

          Regards
          Uwe

          Comment

          Working...
          X