selection of editable text field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
xfrios
Posts: 24
Joined: Wed May 25, 2011 11:54 pm

selection of editable text field

Post by xfrios » Mon May 30, 2011 10:56 am

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!

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

Re: selection of editable text field

Post by Klaus » Mon May 30, 2011 12:24 pm

Hi xfrios,

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


Best

Klaus

xfrios
Posts: 24
Joined: Wed May 25, 2011 11:54 pm

Re: selection of editable text field

Post by xfrios » Mon May 30, 2011 1:20 pm

Thanks! That works great.

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

Can someone point me to where that is documented?

xfrios
Posts: 24
Joined: Wed May 25, 2011 11:54 pm

Re: selection of editable text field

Post by xfrios » Mon May 30, 2011 1:55 pm

Found it in the dictionary under 'commands'. Thanks again!

Post Reply