Page 1 of 1

android native field

Posted: Wed Nov 24, 2021 4:50 pm
by Samuele
hi, i was trying to use an android native text entry field but when i run the app on my mobile it doesn't work (obviously also on my computer), i share with you the code

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
any ideas? thanks!

Re: android native field

Posted: Wed Nov 24, 2021 4:59 pm
by Klaus

Code: Select all

...
if THE TEXT OF widget "EnterUsername" is empty
...
Why not take a look in the dictionary? 8)

Re: android native field

Posted: Wed Nov 24, 2021 5:26 pm
by Samuele
thanks, i so often forget about the dictionary!