Select All command

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
japino
Posts: 78
Joined: Sun Oct 14, 2012 10:56 am

Select All command

Post by japino » Mon Oct 22, 2012 3:23 pm

This is probably a very silly question with a simple answer... I have an Edit menu with a Select All command. That command should select all text in the field which currently holds the insertion point. I know the code for selecting text in a field is "select text of field", but how do you know which field is the current field or in other words, which field has the focus?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Select All command

Post by dunbarx » Mon Oct 22, 2012 3:38 pm

No questions are silly. Only answers.

Look up "the focusedObject" in the dictionary.

Craig Newman

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

Re: Select All command

Post by Klaus » Mon Oct 22, 2012 3:59 pm

Hi japino,

or even better -> the selectedfield
:D

Best

Klaus

japino
Posts: 78
Joined: Sun Oct 14, 2012 10:56 am

Re: Select All command

Post by japino » Mon Oct 22, 2012 5:13 pm

Thank you both! :)

Post Reply