EDIT-LINE-SET-SELECTION Action

This document covers the following topics:


Description

Selects a range of text (lines, columns) in an Edit Area Control. To set the text caret to a certain position, "Line from" and "Line to" must have the same value; "Column from" and "Column to" must also have the same value.

Parameters

Name/Data Type Explanation
HANDLE OF EDITAREA Input

Specifies an Edit Area Control.

Line from (I4) Input/Output

Selection starts from this line onwards. If you specify "0", the last line is selected.

Column from (I4) Input/Output

Selection starts from this column onwards. If you specify "0", the end of the line is selected as the starting column.

Line to (I4) Input/Output

Last selected line. If you specify "0", the last line is selected. The number of this last line will be returned.

Column to (I4) Input/Output

Last selected column. If you specify "0", the complete line is selected. The last selected position in the line will be returned.

Response (I4) Output

Natural error (if applicable).

Example:

   #LINE-FROM := 1         /* Select the first three lines 
   #LINE-TO := 3 
   #COLUMN-FROM := 1       /* Select from the first to the last column 
   #COLUMN-TO := 0 
   PROCESS GUI ACTION EDIT-LINE-SET-SELECTION WITH #EA-1 #LINE-FROM #COLUMN-FROM 
   #LINE-TO #COLUMN-TO GIVING #RESPONSE