Getting Text Out of Native iOS Text Input

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ruaridh
Posts: 2
Joined: Tue Sep 30, 2014 12:56 am

Getting Text Out of Native iOS Text Input

Post by ruaridh » Mon Dec 29, 2014 6:20 pm

Apologies in advance; I am relatively new to LiveCde, so sorry if this is a trivial question!

I have managed to get a native iOS text input into my app (using a mix of the RunRev lesson, and MOBGUI), what I am having difficulties figuring out is how to access the text the user has entered into the field. The code I would normally use with a standard text field, doesn't seem to work.

Any help would be greatly appreciated!
Thanks,
Ruaridh

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Getting Text Out of Native iOS Text Input

Post by Simon » Mon Dec 29, 2014 7:02 pm

Hi Ruaridh,
Welcome to the forum!

Look up "mobileControlGet" specifically for fields

Code: Select all

put mobileControlGet(myTextField, "text") into tText
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ruaridh
Posts: 2
Joined: Tue Sep 30, 2014 12:56 am

Re: Getting Text Out of Native iOS Text Input

Post by ruaridh » Mon Dec 29, 2014 9:25 pm

Hi Simon, thats a huge help! Thank you so much!

Post Reply