4 Replies Latest reply on May 12, 2008 7:48 AM by kglad

    making sure my 3rd letter is one , or .

    exPluda? Level 1
      Hello,

      I'm having big trouble trying to make sure user input one . (dot) or , (comma) in 3rd place on sentence, how can I do that?

      I'm using this:

      var letra:String = a_checar.charAt(2);
      if ((letra != ",") || (letra != ".")) {
      getURL("javascript:alert('erro no 3º digito')");
      trace(letra);
      return;
      }

      but this does not work, even if user enters per example 14,56, I got error on 3rd letter

      Any help please?

      Thanks