Please enable JavaScript to view this site.

ESL Documentation

You can copy a segment from one textual region into another, or from one place to another in the same textual region, by using the segment specification.

 

If both the source and destination textual regions are colored textual regions, insert segment will copy the characters' color attributes. If the segment is colored but the destination textual region is not, then the color attributes will be dropped. If the segment is not colored, the default background and foreground colors of the destination textual region will be used.

 

You can insert a segment from one place to another in the same textual region, as long as the segment does not overlap the current text cursor's position. (If an overlap does occur, no segment will be selected, and an error message will be generated.)

 

The specified segment is inserted beginning at the current position of the text cursor, and the original text is moved to the right to make room for the new text. Note that, as with the insert STRING statement, after the text is inserted, the text cursor is positioned on the character following the last inserted character. This is the same character on which the text cursor was positioned before the insertion, but it is now in a new column position.

 

Line breaks within the segment are preserved when the segment is inserted.