Swapping and Shifting Case Subdiagrams

You can swap the visible case with another case without affecting the other cases or the order of the cases as they appear in the shortcut menu. Only the subdiagrams of the two cases change.

Complete the following steps to swap the visible case with another case.

  1. Move to the case whose subdiagram you want to swap with another subdiagram.
  2. Right-click the structure border.
  3. Select Swap Diagram With Case from the shortcut menu and select the case whose subdiagram you want to swap with the visible subdiagram.

Refer to Swap Subdiagram with Case Example for an example of swapping cases.

You also can shift the visible case to a different position in the case order if the data type wired to the selector terminal is numeric and is not enumerated.

Complete the following steps to shift the visible case to a different position.

  1. Move to the case whose subdiagram you want to shift to another position.
  2. Right-click the structure border.
  3. Select Shift Diagram To Case from the shortcut menu and select the case where you want to shift the visible subdiagram.

Refer to Shift Subdiagram to Case Example for an example of shifting cases.

You also can rearrange the cases in a Case structure.