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

Syntax 1: For editable controls, except RichTextEdit – PB Docs 2021 – PowerBuilder Library

Syntax 1: For editable controls, except RichTextEdit – PB Docs 2021

Syntax 1: For editable controls, except RichTextEdit

Description

Determines the position of the insertion point in an edit
control.

Applies to

DataWindow, EditMask, InkEdit, MultiLineEdit, SingleLineEdit, or
DropDownListBox, DropDownPictureListBox controls

Syntax

Argument

Description

editname

The name of the DataWindow control, EditMask, InkEdit,
MultiLineEdit, SingleLineEdit, or DropDownListBox, or
DropDownPictureListBox control in which you want to find the
location of the insertion point

Return value

Integer for DataWindow, InkEdit, and list boxes, Long for other
controls.

Returns the location of the insertion point in editname if it
succeeds and -1 if an error occurs. If editname is null, Position
returns null.

Usage

Position reports the position number of the character immediately
following the insertion point. For example, Position returns 1 if the
cursor is at the beginning of editname. If text is selected in editname,
Position reports the number of the first character of the selected
text.

In a DataWindow control, Position reports the insertion point’s
position in the edit control over the current row and column.

Examples

If mle_EmpAddress contains Boston Street, the cursor is
immediately after the n in Boston, and no text is selected, this
statement returns 7:

If mle_EmpAddress contains Boston Street and Street is selected,
this statement returns 8 (the position of the S in Street):

See also

SelectedLine

SelectedStart


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