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

ItemFocusChanged – PB Docs 2022 – PowerBuilder Library

ItemFocusChanged – PB Docs 2022

ItemFocusChanged

event (DataWindows)

Description

Occurs when the current item in the control changes.

PowerBuilder event
information

Event ID: pbm_dwnitemchangefocus

Argument

Description

row

Long by value. The number of the row containing the
item that just gained focus.

dwo

DWObject by value. A reference to the column
containing the item.

Return Values

There are no special outcomes for this event. The only code
is:

0 — Continue processing

Usage

ItemFocusChanged occurs when focus is set to another column in the
DataWindow, including when the DataWindow is first displayed.

The row and column together uniquely identify an item in the
DataWindow.

PowerBuilder programming
note

In the ItemFocusChanged event, dwo is always a column control.
Therefore, you can get more information about it by examining any
properties that are appropriate for columns such as dwo.id and
dwo.Name.

Examples

This example reports the row and column that just gained focus and
that just lost focus. (The first time the event occurs, there is no item
that just lost focus; the script saves the row number and column name in
two instance variables called ii_row and is_colname so that the old item
is known the next time the event occurs.)

See also

RowFocusChanged

RowFocusChanging


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