Page 1 of 1

Native text control problem

Posted: Fri Jul 08, 2011 8:00 am
by info26
Hello everyone

I am a little confused, I do not find an example of how to get the text of a native text control.

There is a fine example of how to change all the properties of the text but do not understand how to get the content

Do you have suggestions

thanks

Re: Native text control problem

Posted: Fri Jul 08, 2011 10:54 am
by Klaus
Hi info26,

...
put iphoneControlGet(ID_of_Your_Control, "text") into tEditedText
...
Please check:
http://lessons.runrev.com/spaces/lessons
And the "iOS Release Notes"!


Best

Klaus

Re: Native text control problem

Posted: Sat Jul 09, 2011 9:58 am
by info26
OK the code
put iphoneControlGet(ID_of_Your_Control, "text") into tEditedText
is correct if I put a number of control_ID

But if I have a card with 10 text area how can I distinguish the text areas from each other?

How can I obtain the id of the object

Thank's

Re: Native text control problem

Posted: Sat Jul 09, 2011 10:30 am
by Klaus
Hi info26,
How can I obtain the id of the object?
Well since YOU created them (I boldly presume) you should
be able to mange your objects somehow. 8)

I think you can also give your native iOS controls a NAME instead an ID.


Best

Klaus

Re: Native text control problem

Posted: Sat Jul 09, 2011 12:02 pm
by Jellicle
info26 wrote: How can I obtain the id of the object
When you create the control with iphoneControlCreate, the ID is returned in the result. So, for example:

iphoneControlCreate "input"
put the result into InputControlID

InputControlID would contain the ID of the control.

All this is in the iOS release notes.

Gerry