Code: Select all
on returnInField
put field "Serial1" into tNumber
if tNumber >= 1000 and tNumber <= 2000
then set the visible of button "New Project" to true
if tNumber >= 1000 and tNumber <= 2000
then set the visible of field "Index" to true
put tNumber into field "Serial1"
set the opaque of field "Register1" to false
set the opaque of field "Serial1" to false
disable field "Register1"
disable field "Serial1"
end returnInField