Error getting tags :
error 404Error getting tags :
error 404 group | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
group
Basics
Expander triangle
Type
Command
Syntax
group [objectList]
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Creates a new group and adds the selected objects to it.
Examples

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

Additional Comments
Expander triangle

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

Parameters:

The objectList is a list of object references, separated by the word "and".

Comments:

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 lastkeyword:

group button "Yes" and button "No"

set the name of last group to "Do It"

User Comments
Expander triangle
User thumbnail
Graham Samuel
StarStarStarStarStar
Sep 21, 2009
When objects are grouped, the margins are set to 4 by default, so the area occupied by the group is larger than you might expect. The margins can be changed by script after the group is created.
User thumbnail
SNaG WoLf
StarStarStarStarStar
Jul 27, 2010
Here's an inefficient but quick way to group a list of long ids.
tAPKS =


button id 1282 of card id 1002 of stack "drag" of stack XXXXX
button id 1283 of card id 1002 of stack "drag" of stack XXXXX
button id 1284 of card id 1002 of stack "drag" of stack XXXXX
button id 1285 of card id 1002 of stack "drag" of stack XXXXX
button id 1286 of card id 1002 of stack "drag" of stack XXXXX


Grouping Code


put the number of lines of the tAPKS of stack "drag" into tNum //Get number of lines to process
put 1 into tLine //start from line 1
put line tLine of the tAPKS of stack "drag" into tList //put the first long id from tAPKS into the tList variable
repeat until tLine = tNum //Use a repeat function that allows you to go through every line of tAPKS
put tLine + 1 into tLine //Use a simple counter for the repeat function
put " and " & line tLine of the tAPKS of stack "drag" after tList //Add and "and" (standard grouping syntax) aswell as the next line of tAPKS to the tList variable
end repeat
group tList //Group everything in the tList variable