This article will describe how to Cut/Copy/Paste INFORM instructions on Smart Pendant. This can be used for actions such as duplicating code or moving code into or out of IfThen/Endif or For/Next statements. These controls can be found in the “Edit” menu from the Job Content View header panel. To open the edit menu, press the icon shown below:
Edit Menu Commands
The following commands are available through the Edit Menu (as labelled above):
- Undo
Toolbar button Description Undo reverses the most recent editing command from Commands tab.
- Redo
Toolbar button Description Redo reverts the effects of the undo action.
- Cut
Toolbar button Description Deletes the selected command(s) from a job and copies command(s) to a buffer.
- Copy
Toolbar button Description Copies the selected command(s) to the buffer.
- Paste
Toolbar button Description Inserts the content of the buffer on a line below the selected step.
- Delete
Toolbar button Description Deletes the selected command(s).
- Suppress (Comment)
Toolbar button Description Suppress the selected command(s). Suppressed commands will be skipped during job execution.
Editing Single Lines
To edit a single line, simply highlight the line and press the desired action. For example, suppose we wanted to move the “Set” instruction below outside of the For/Next loop. First, highlight the line with the instruction and press the {Cut} button as shown below:
The selected line will be removed and now the new location can be selected. For example, to insert the command before the For/Next loop, select line one and press the {Paste} button.
Now, the instruction will be added to the new location:
Editing Multiple Lines
All actions in the Edit Menu can also be used to manipulate multiple lines at once. For example, suppose we wanted to copy some lines inside the For/Next loop and paste them outside the loop.
To do this, first press and hold on the desired first line. After approximately 1 second, the MultiSelection controls will appear as shown below:
Next, highlight the desired block of code and then press the {Copy} button.
Next, select the desired location and press the paste button. For example, selecting line 8 would result in the code below:
Comments
0 comments
Please sign in to leave a comment.