5 Replies Latest reply on Jul 28, 2009 9:00 AM by thebobajob

    TextField.length never zero

    thebobajob

      I am using TextField.length to determine if a TextField is empty or not but it is never returning zero - it is always length = 1 when empty.

       

      Although my code is based on this and seems to work...

       

      if (mcApp.txtDisplay.length == 1) {

       

      }

       

      ...I can't understand why and am wondering if this may break one day if it is a bug and gets fixed. Or am I doing somethign wrong?

       

      Thanks

      Bob