SelectTextAll
method (DataWindows)
Description
Selects all the contents of a RichTextEdit control including any
special characters such as carriage return and end-of-file markers.
Applies to
|
DataWindow type |
Method applies to |
|---|---|
|
PowerBuilder |
DataWindow control |
Syntax
PowerBuilder
|
1 |
integer rtename.SelectTextAll ( band band ) |
|
Argument |
Description |
|---|---|
|
rtename |
A reference to a DataWindow control in which you want |
|
band (optional) |
A value of the Band enumerated datatype specifying
The default is the band that contains the |
Return value
Returns the number of characters selected. A carriage return with a
line feed counts as a single character. If an error occurs, SelectTextAll
returns -1.
Usage
PowerBuilder RichTextEdit control
You can use the same syntax with a PowerBuilder RichTextEdit
control. See the section called “SelectTextAll” in PowerScript Reference.
Examples
This statement selects all the text in the detail band:
|
1 |
dw_1.SelectTextAll() |
This statement selects all the text in the header band:
|
1 |
dw_1.SelectTextAll(Header!) |
See also