4.10 Paste Range Dialog Box

A paste range defines a region in which you can paste text across multiple screens. After you cut, copy, or append a selection on the Clipboard, you can set the paste range before inserting the selection within the host application.

HINT:You can also use the Paste Next command to paste text across multiple screens.

You will need to modify the screen positions that define the region for the paste range. You can specify different starting and ending positions for the first screen and remaining screens.

NOTE:

The changes you make in the Paste Range dialog box are retained only while your session is open and are not saved when you close your session. If you close and reopen your session, you’ll need to adjust these settings again. You cannot save these settings. If you need to define a paste range that you can reuse after you close and reopen your session, you can create a VBA macro that pastes text into a custom paste range (see the PasteRange method in the VBA Help).

Paste Range is supported for IBM 3270 and IBM 5250 terminals.

Specify the paste range with the following options.

From Row

Specifies the starting row coordinate, typically a value between 1 and the last row in the terminal window.You can also specify 0 or a negative row number. If you specify 0, InfoConnect pastes on the last row at the bottom of the terminal window. If you specify a negative number, InfoConnect pastes starting at the specified number of rows from the last row. For example, if the terminal supports 24 rows and you specify -14, InfoConnect starts pasting on row 10.

From Col

Specifies the starting column coordinate, typically a value between 1 and the last column in the terminal window.If you specify 0, InfoConnect pastes on the last column at the right edge of the terminal window. If you specify a negative number, InfoConnect pastes starting at the specified number of columns from the last column. For example, if the terminal supports 80 columns and you specify -76, InfoConnect starts pasting on row 4.

To Row

Specifies the ending row coordinate, typically a value between 1 and the last row in the terminal window. If you specify 0, InfoConnect pastes on the last row at the bottom of the terminal window. If you specify a negative number, InfoConnect ends pasting at the specified number of rows from the last row. For example, if the terminal supports 24 rows and you specify -14, InfoConnect starts pasting on row 10.

To Col

Specifies the ending column coordinate, typically a value between 1 and the last column in the terminal window.If you specify 0, InfoConnect pastes on the last column at the right edge of the terminal window. If you specify a negative number, InfoConnect ends pasting at the specified number of columns from the last column. For example, if the terminal supports 80 columns and you specify -3, InfoConnect ends pasting on column 77.

Page Down Key

Specifies the terminal key used to scroll automatically to the second and remaining screens of the paste range. During the paste range operation, when the end of the screen is encountered, the Page Down key is executed automatically, scrolling to the start of the second and remaining screens.

Wrap text to next line

Inserts text across lines instead of truncating it at the end of the current line.

Use field delimiters

Controls how text is pasted when the screen contains protected locations. If unselected, pasting stops if the first field on a row is protected. If selected, InfoConnect continues to search for subsequent fields, searching first right and then down, until it finds another unprotected field. If an unprotected field is located, pasting starts in this field; if not, pasting stops. When pasting is stopped, any remaining text is put into the Paste Next buffer.

Templates

These templates are examples of settings for copying and pasting selections within IBM3270 host applications, such as PROFS NOTE and XEDIT, that you can use as a starting point for your application. You cannot create a custom template. If you need to define a paste range that you can reuse after you close and reopen your session, you can create a VBA macro that pastes text into a custom paste range (see the PasteRange method in the VBA Help).