3 Replies Latest reply on Aug 15, 2010 1:26 PM by kglad

    The code error which is difficult to understand?

    learner_7n Level 1

      HI,

       

      I am getting the following code error which is in red color. How to solve the problem? The errors are in Line 1, 2, 5 & 6. This code is used for auto typing style.

       

      if (Number(TextLen)<=Number(length(TextBuffer)) and Number(TextLen)<>0) {
         TextLen = Number(eval("TextLen"))+1;
          TypeField = substring(TextBuffer, 1, TextLen);
      } else {
         TextLen = 0;
      }

       

      1084: Syntax error: expecting rightparen before and.

      1084: Syntax error: expecting rightbrace before semicolon.

      1084: Syntax error: expecting rightbrace before semicolon.

      1100: Syntax error: XML does not have matching begin and end tags.