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!
selection of editable text field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: selection of editable text field
Hi xfrios,
...
select text of fld "field name here"
...
Best
Klaus
...
select text of fld "field name here"
...

Best
Klaus
Re: selection of editable text field
Thanks! That works great.
I'm having a hard time finding things in the documentation.
Can someone point me to where that is documented?
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
Found it in the dictionary under 'commands'. Thanks again!