Startseite › Foren › Deutsches LiveCode-Forum › Zeichenzähler › Antwort auf: Zeichenzähler
April 19, 2018 um 19:00 Uhr
#5384
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
