how can I save a variable with Keyboard?

i have used this code:
http://developer.anscamobile.com/reference/index/nativesetkeyboardfocus

but how can I set a variable to save/take what user will write??

Thanks [import]uid: 23063 topic_id: 13196 reply_id: 313196[/import]

when you create a new object with native.newTextField, it has a property called .text. So if you do a:
playerName = native.newTextField(… whatever params you use)

Then when you want the data just access:

myName = playerName.text

You can pre-populate the field too by doing:

playerName.text = “Player Name Here”

Of course, the property won’t be filled out until the player taps the enter key and your function call back is executed. [import]uid: 19626 topic_id: 13196 reply_id: 48430[/import]

Thank you so much

I will do this =] [import]uid: 23063 topic_id: 13196 reply_id: 48432[/import]