Antwort auf: Zeichenzähler

Startseite Foren Deutsches LiveCode-Forum Zeichenzähler Antwort auf: Zeichenzähler

#5384
Klaus Major
Administrator

    Das Runterzählen gehört in den ELSE Fall, dann klappt das auch mit der NULL:

    on keyDown pKey
       put the number of chars of me +1 into tEingabefeld
       put "5" into tCounterfeld
       if the length of me = 5 then 
          beep
       else
          put tCounterfeld - tEingabefeld into fld "counterfeld"
          pass keyDown
       end if
    end keyDown