using chunk expressions in native iOS "multiline" controls

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm

using chunk expressions in native iOS "multiline" controls

Post by Coffee1633 » Fri Jul 05, 2013 2:11 am

Is is possible to use chunk expressions in iOS controls specifically multiline controls?

Lets say I want to get the 3rd word from fld "myFieldName", then I would normally use

put word 3 of fld "myFieldName" into tMyVariable
//do something with tMyVariable

Is it possible to refer to the native control like I would fld "myFieldName"?

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

Re: using chunk expressions in native iOS "multiline" contro

Post by Klaus » Fri Jul 05, 2013 1:16 pm

Hi Coffe1633,

not directly! :-)

You need to get the text of the native "text" control first and process that:
...
put mobileControlGet("name of your native multiline text control here! Or just its ID :-)", "text") into tInputText
put word 3 of tInputText into tMyVariable
...


Best

Klaus

Post Reply