Code: Select all
on mouseUp
CheckIfEmptyOrExists
end mouseUp
on CheckIfEmptyOrExists
if the environment is "mobile" then
if widget "EnterUsername" is empty
then
answer"you didn't type!"
else
PutUsernameIntoGlobal
CheckIfUserExistsSQL
hide image "EnterField"
hide widget "EnterUsername"
hide me
show field "UserName"
EnableAll
end if
end if
end CheckIfEmptyOrExists