Start of Content Area

Function documentationSELECT_LINES  Locate the document in its SAP Library structure

Use

Use this method to select a range of lines. The range is automatically placed within the visible section of the control.

Windows

HTML

Java

ü

X

ü

Features

call method textedit- >select_lines

  exporting
    from_line = from_line
    to_line = to_line

  exceptions
    error_cntl_call_method = 1.

Parameters

Description

from_line

Starting line for the range

to_line

Final line (inclusive) of the range

You can make the selection invisible to the user as follows:

  1. Get the current cursor position
  2. Switch off the redraw function by calling the method AUTO_REDRAW and setting the ENABLE_REDRAW parameter to false.
  3. Set the required selection. Other actions may follow at this point.
  4. If required, set the new position.
  5. Reenable the automatic redraw by calling the method AUTO_REDRAW and setting the ENABLE_REDRAW parameter to true.