Command PV SELECT RANGES LIST

4D View

PV SELECT RANGES LIST

version 6.8


PV SELECT RANGES LIST (area; left; top; right; bottom; action)

ParameterTypeDescription
areaLongint4D View area
leftArrayColumn numbers array of left cells
topArrayRow numbers array of top cells
rightArrayColumn numbers array of right cells
bottomArrayRow numbers array of bottom cells
actionIntegerSelect action

Description

This command is similar to PV SELECT RANGE, except that it applies to several cell ranges whose coordinates are saved in the left, top, right, and bottom arrays.

action is defined in PV Selection action constants (for more information, refer to the description of the PV SELECT RANGE command).

Example

Provoke the selection of five ranges of increasing sizes using programming.

   C_INTEGER($Index)  `Loop index
   C_INTEGER($Number)  `Number of ranges

   $Number:=5  `The group of five in the range
   ARRAY LONGINT($Left;5)
   ARRAY LONGINT($Top;5)
   ARRAY LONGINT($Right;5)
   ARRAY LONGINT($Bottom;5)

      `Initialization
   For ($Index;1;$Number)
      $Left{$Index}:=$Index*3  `Left limits
      $Top{$Index}:=$Index*6  `Top limits
      $Right{$Index}:=$Index*4  `Right limits
      $Bottom{$Index}:=$Index*7  `Bottom limits
   End for

   PV SELECT RANGES LIST (Area;$Left;$Top;$Right;$Bottom;pv selection add

See Also

PV GET SELECTED RANGES LIST.

Constants

PV Selection action theme.