Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SelectedLine – PB Docs 2019 – PowerBuilder Library

SelectedLine – PB Docs 2019

SelectedLine

PowerScript function

Description

Obtains the number of the line that contains the insertion point in
an editable control. The insertion point moves to the next line if the
current line contains a carriage return.

Applies to

DataWindow, MultiLineEdit, and RichTextEdit controls

Syntax

Argument

Description

editname

The name of the DataWindow, MultiLineEdit, or RichTextEdit
in which you want the number of the line containing the
insertion point. For a DataWindow, it reports the line number in
the edit control over the current row and column.

Return value

Long.

Returns the number of the line containing the insertion point in
editname. If an error occurs, SelectedLine returns -1. If editname is
null, SelectedLine returns null.

Usage

For EditMask controls, SelectedLine compiles but always returns
1.

The insertion point can be at the beginning or end of the selection.
Therefore, SelectedLine can return the first or last selected line,
depending on the position of the insertion point.

Examples

If the insertion point is positioned anywhere in line 5 of the
MultiLineEdit mle_Contact, the following example sets li_SL to 5:

In this example, the line the user selects in the MultiLineEdit
mle_winselect determines which window to open:

See also

LineLength

Position

SelectedColumn

SelectedPage

SelectedText

TextLine


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x