Please enable JavaScript to view this site.

ESL Documentation

The add to action statement adds drawing statements to the contents of a textual region, or to the contents of all the textual regions in a class, in a similar way in which it adds drawing statements to graphical objects. The only difference is that you specify the position in columns and lines, instead of X Y coordinates.

 

The added contents are specified by the drawing statements in the action statement. For example, the following statement adds the text "memorandum" at column 10, line 4 of the textual region Report, and all the existing drawing statements for the textual region are preserved.

 

add to Report at position column 10 line 4

    insert "memorandum"

 

The at position specification moves the text cursor to the column and line specified. It is equivalent to specifying a move to drawing statement. If you do not include the at position specification, the new drawing statements begin at the current position of the text cursor.

 

Because a textual region's drawing statements are distinct from graphical drawing statements, you cannot specify an add to statement for a class of objects that includes textual regions as well as other objects.