Selecting, Cutting, Copying, and Pasting Array Cells
Complete the following steps to define the cells for selection using the array index.
Place a 2D array on the front panel. Drag a digital control into the array shell and resize the array so that it contains four rows and four columns.
Right-click the array and select Advanced»Show Selection from the shortcut menu. Enabling this option shows selected cells, if any exist.
Right-click the border of the array shell and select Add Element Gap from the shortcut menu to separate the cells by a thin open space. Although it is not necessary to add the element gap, this open border makes it easier to select cells. When you select cells, a thick border to denote the cells you selected fills this open space.
Set the array index display to 1,1. Right-click the index display and select Advanced»Start Selection from the shortcut menu.
Set the array index display to 3,3. Right-click the index display and select Advanced»End Selection from the shortcut menu.
The selection includes the cells denoted by the lower index numbers but not the cells denoted by the higher index numbers. Steps 4 and 5 above select the cells from 1,1 to 2,2. If you want to include the cells from 1,1 to 3,3, set the array index to 4,4 right-click the index display and select Advanced»End Selection.
Note Cutting the selected cells removes the entire set of rows and columns spanned by the selection but places only the selected cells into the clipboard. You lose the information contained in the rows and columns surrounding the selection.
Repeat Steps 4 and 5, using the appropriate index display values, to define an area of equal size in the array where you want to paste the data.
Right-click the array shell border and select Advanced»Paste Data to paste data. After you have pasted the selection, notice that one border remains highlighted around the pasted data. This is an insertion point and remains in the array. To hide this line, deselect the Show Selection item from the shortcut menu.
Complete the following steps to unmark the cells for selection.
Set the index display to 0 in all dimensions.
Right-click the index display and select Advanced»Start Selection.
Right-click the index display again and select Advanced»End Selection.
Complete the following steps to cut or copy data from or paste data to arrays.
To select the data, set the index display to the first element in the data set you want to cut or copy.
Right-click the index display and select Advanced»Start Selection from the shortcut menu.
Set the index display to the last element in the data set you want to copy.
Right-click the index display and select Advanced»End Selection from the shortcut menu.
Right-click and select Advanced»Cut Data to cut data or Advanced»Copy Data to copy data.
When in run mode, you can access these menu items when you right-click an array.