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

InputFieldChangeData – PB Docs 2019 – PowerBuilder Library

InputFieldChangeData – PB Docs 2019

InputFieldChangeData

PowerScript function

Description

Modifies the data value of input fields in a RichTextEdit
control.

Applies to

RichTextEdit controls

Syntax

Argument

Description

rtename

The name of the RichTextEdit control in which you want to
change the data in the specified input fields.

inputfieldname

A string whose value is the name of input fields whose
value you want to change. There can be more than one input field
with a given name.

inputfieldvalue

A string whose value is the data to be assigned to the
specified input fields.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, InputFieldChangeData returns null.

Usage

All the input fields that have the same name contain the same data.
When you call InputFieldChangeData, you affect all the fields of the
specified name.

Examples

This script is part of the SelectionChanged event for the ListBox
lb_instruments. When the user clicks on an item in the ListBox, the
selected instrument name is assigned to the input field called instrument
in the RichTextEdit rte_1:

If the text in rte_1 looks like this:

Dear {title} {lastname}:

We’re happy you have rented a {instrument} for your child. Please
perform regular maintenance for the {instrument} as instructed by your
child’s teacher. You can buy {instrument} supplies and instruction books
at your local music stores.

Then after the user picks trumpet in the ListBox, the script inserts
trumpet for every occurrence of the {instrument} field. The other fields
are not affected:

Dear {title} {lastname}:

We’re happy you have rented a trumpet for your child. Please perform
regular maintenance for the trumpet as instructed by your child’s teacher.
You can buy trumpet supplies and instruction books at your local music
stores.

See also

InputFieldCurrentName

InputFieldDeleteCurrent

InputFieldGetData

InputFieldInsert

InputFieldLocate

DataSource


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