Page 1 of 1

selection of editable text field

Posted: Mon May 30, 2011 10:56 am
by xfrios
I have an editable text field which the user has entered a value into.

When my validation fails I want to select all text within the field so that any keypress from the user will overwrite the existing contents of the field.

By 'select all text' I mean similar to the selection like the blue overlay you get like when you do a select and copy with the mouse.

Focus "fieldName" is easy enough, but can't yet find a method to select the field contents.

Thanks!

Re: selection of editable text field

Posted: Mon May 30, 2011 12:24 pm
by Klaus
Hi xfrios,

...
select text of fld "field name here"
...
:D


Best

Klaus

Re: selection of editable text field

Posted: Mon May 30, 2011 1:20 pm
by xfrios
Thanks! That works great.

I'm having a hard time finding things in the documentation.

Can someone point me to where that is documented?

Re: selection of editable text field

Posted: Mon May 30, 2011 1:55 pm
by xfrios
Found it in the dictionary under 'commands'. Thanks again!