Please enable JavaScript to view this site.

ESL Documentation

Navigation: » No topics above this level «

Q8 How should I copy an entire textual region to another textual region?

Scroll Prev Top Next More

Copying an entire textual region can be achieved by either copying the contents as one large textual segment or by using a for loop to copy each textual line individually. An example of each method is shown below:

ESLLan13

In the above example "left of" returns the column number of the first column in the textual region, "top of" returns the line number of the first line in the textual region, "right of" returns the last column of the longest line in the textual region, and "bottom of" returns the line number of the last line of test in the textual region. Since "left of" and "top of" are always 1, you can substitute in the integer value 1 for these functions.

ESLLan14