selectedObject

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the selectedObject
selectedObject()
Synonymsselectedobjects,selobj,selobjs,selectedgraphic
Summary

Returns the name of the selected object or objects.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the selectedObject
set the lockText of the selectedObject to true
repeat with x = 1 to the number of lines of the selectedObjects
Values
NameTypeDescription
return

The selectedObject function returns a list with the long ID property of each selected object.

RelatedProperty: ID, selectGroupedControls, selected
Command: group
Function: target
Control Structure: function
Glossary: property, return, object
Description

Use the selectedObject function to perform an action on all the selected objects.