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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Select All command

Post by dunbarx »

No questions are silly. Only answers.

Look up "the focusedObject" in the dictionary.

Craig Newman
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Select All command

Post by Klaus »

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 »

Thank you both! :)
Post Reply