I'm trying to make a simple subtract operation on a text field but i get an "cant' find object" error and i can't understand why...
Here is my code:
Code: Select all
on mouseUp
put the text of field "numero" into tNumero
if tNumero > 0 then
subtract 1 to tNumero
else
put 0 into tNumero
end if
put tNumero into field "numero"
end mouseUp
If i use thee same code but with the ADD function instead of subtract, all work good.
