Skip to main content

group

Type​

command

Summary​

Creates a new group and adds the selected objects to it.

Syntax​

group [<objectList>]

Description​

Use the group command after selecting objects to make a group out of them.

If you specify an objectList, the specified objects are placed in the new group. Otherwise, the selected object or objects are placed in the group.

As with any group on a card, you can use the place command to make the newly-created group appear on other cards.

tip

To refer to the newly-created group, use the it variable immediately after the 'group' command :

    group button \"Yes\" and button \"No\"
set the name of it to \"Do It\"

Parameters​

NameTypeDescription

objectList

A list of object references, separated by the word "and".

Examples​

group
if the number of lines of the selectedObject &gt; 1 then group
group field "Help" and image "Help Icon" and graphic "Outline"

Value​

NameTypeDescription

it

The group command places the ID property of the newly created object in the it variable.

object: card

property: selected, relayerGroupedControls, layer

command: group, start editing

function: selectedObject

glossary: object, command, keyword, select

keyword: last

message: newGroup

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?