Use
Use this method to set a selection for a text area based on character index. The position is automatically placed within the visible section of the control.
Windows |
HTML |
Java |
ü |
X |
ü |
Features
call method textedit- >set_selection_indexes
exporting
from_index = from_index
to_index = to_index
exceptions
error_cntl_call_method = 1.
Parameters |
Description |
from_index |
Character index at which the selection begins. The index is relative to the first character in the control. |
to_index |
Character index at which the selection ends. The index is relative to the first character in the control. |

If the "from" and "to" character positions are the same, no text is selected, but the cursor is placed at the corresponding position.
You can make the selection invisible to the user as follows: