SelectTextLine
method (DataWindows)
Description
Selects the line containing the insertion point in a RichTextEdit
control.
Applies to
|
DataWindow type |
Method applies to |
|---|---|
|
PowerBuilder |
DataWindow control |
Syntax
PowerBuilder
|
1 |
integer rtename.SelectTextLine ( ) |
|
Argument |
Description |
|---|---|
|
rtename |
A reference to a DataWindow control. The DataWindow |
Return value
Returns the number of characters selected if it succeeds and -1 if
an error occurs.
Usage
If the RichTextEdit control contains a selection, the insertion
point can be at the beginning or end of the selection. The way the text
was selected determines the location.
If the user made the selection by dragging toward the end, then
calling SelectTextLine selects the line at the end of the selection. If
the user dragged back, then SelectTextLine selects the line at the
beginning of the selection.
SelectTextLine does not select the line-ending characters (carriage
return and linefeed).
PowerBuilder RichTextEdit control
You can use the same syntax with a PowerBuilder RichText Edit
control. See the section called “SelectTextLine” in PowerScript Reference.
Examples
This statement selects the current line:
|
1 |
dw_1.SelectTextLine() |
See also