EraseAndPaste |
Top Previous Next |
×V3.0.2Ø
Syntax - EraseAndPaste <ValueToPaste> <Row> <Col> Where: <ValueToPaste> is a string literal or a variable containing a string <Row> is an integer or a variable containing an integer <Col> is an integer or a variable containing an integer
Description: This command is used as a short cut to erase the contents of a field on the mainframe screen before pasting a new value. The following three lines of code are equivalent to one EraseAndPaste command, they will set the cursor to row 8 column 16 erase what is currently shown and paste the variable PtID.
SetCursorPosition 8 16 Send s "[Erase]" Paste PtID 8 16
This command can be built with an option in the context menu on the terminal screen. By selecting the "Insert EraseAndPaste Command" option from the context (right-click) menu, a EraseAndPaste command will be built based on the current terminal cursor position and will be inserted into the editor where the editor cursor is.
Sample: The following statements uses the EraseAndPaste command to erase what is currently shown on row 8 column 16 and paste the variable PtID. EraseAndPaste PtID 8 16
|