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

FormFieldGetStart – PB Docs 2022 – PowerBuilder Library

FormFieldGetStart – PB Docs 2022

FormFieldGetStart

PowerScript function

Description

Gets the starting position of the specified form field. The type of
the form field may be FormFieldCheckBox, FormFieldComboBox, FormFieldText,
and FormFieldDate.

The starting position is the character index (starting at 1) of the
first character of the form field in the RichTextEdit control. If there
are new line characters in the content, each new line character is counted
as one character too. If the RichTextEdit control contains header and
footer, the character indexes of the header, footer and main content are
accumulated separately.

Applies to

RichTextEdit control

Syntax

Argument

Description

fieldID

The unique ID assigned to the form field.

Return value

Integer.

Returns the starting position of the form field relative to the
content in the RichTextEdit control. The starting position is the
character index (starting at 1) of the first character of the form field
in the RichTextEdit control. If there are new line characters in the
content, each new line character is counted as one character too. If the
RichTextEdit control contains header and footer, the character indexes of
the header, footer and main content are accumulated separately.

Returns -1 if an error occurs. Returns -2 if the fieldID is
non-existent, illegal, or not of the required type. If any argument’s
value is null, returns null.

Examples

This example gets the starting position of the specified form field
in the current RichTextEdit control.


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