group

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
group [<objectList>]
Associationsgroup
Summary

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

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
objectList

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

Example
group
if the number of lines of the selectedObject > 1 then group
group field "Help" and image "Help Icon" and graphic "Outline"
Values
NameTypeDescription
It

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

RelatedProperty: selected, relayerGroupedControls, layer
Message: newGroup
Keyword: last
Glossary: object, command, keyword, select
Function: selectedObject
Command: group, start editing
Object: card
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"

Tagsobjects