android native field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

android native field

Post by Samuele » Wed Nov 24, 2021 4:50 pm

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!
Samuele.

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: android native field

Post by Klaus » Wed Nov 24, 2021 4:59 pm

Code: Select all

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

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: android native field

Post by Samuele » Wed Nov 24, 2021 5:26 pm

thanks, i so often forget about the dictionary!
Samuele.

Post Reply