CT SELECT

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT SELECT (area; scope; action)

ParameterTypeDescription
areaLongint4D Chart area
scopeLongintScope of the command
-1 = All
0 = Selected objects
>0 = Object ID
actionIntegerSelect or deselect object?
0 = Deselect
1 = Select
2 = Toggle

Description

The CT SELECT command selects or deselects the objects in area described by scope.

If scope equals -1, CT SELECT affects all objects in the document.

If scope equals 0, CT SELECT affects the selected objects.

If scope is greater than 0, it must be equal to a specific object's ID and that object is affected. If the object does not exist, CT SELECT does nothing.

The object(s) described by scope are selected or deselected according to the action parameter. If action equals 0, the objects described by scope are deselected. If action equals 1, the objects described by scope are selected. If action equals 2, the current state of the objects are toggled, that is, selected becomes deselected and vice-versa.

Objects outside of scope are not affected by CT SELECT. That is, objects that are already selected in Area and are not specified by scope remain selected.

Example

This example deselects all objects in the document and then selects the object with an ID number equal to 1.

   CT SELECT (Area;-1;0)
   CT SELECT (Area;1;1)

See Also

CT Get ID.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next