TextLine method (DataWindows)
Description
Obtains the text of the line that contains the insertion point.
TextLine works for controls that can contain multiple lines.
Controls
|
DataWindow type |
Method applies to |
|---|---|
|
PowerBuilder |
DataWindow control |
|
Web ActiveX |
DataWindow control |
Syntax
[PowerBuilder]
|
1 |
string <span>editname</span>.<span>TextLine</span> ( ) |
[Web ActiveX]
|
1 |
string <span>editname</span>.<span>TextLine</span> ( ) |
|
Argument |
Description |
|---|---|
|
editname |
A reference to a DataWindow control |
Return Values
Returns the text on the line with the insertion point in editname.
If an error occurs, TextLine returns the empty
string (“”). If editname is
null, TextLine returns null.
Usage
TextLine reports information about the
edit control over the current row and column.
PowerBuilder environment
For use with other PowerBuilder controls, see TextLine in
the PowerScript Reference.
Examples
In the DataWindow control dw_letter, if
the insertion point is on line 4 in the edit control and the text
on the line is North Carolina, then this example sets linetext to
North Carolina:
|
1 |
string linetext |
|
1 |
linetext = dw_letter.<span>TextLine</span>() |