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

IsSelected – PB Docs 2022 – PowerBuilder Library

IsSelected – PB Docs 2022

IsSelected

method (DataWindows)

Description

Determines whether a row is selected in a DataWindow or DataStore. A
selected row is highlighted using reverse video.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Syntax

PowerBuilder

Argument

Description

dwcontrol

A reference to a DataWindow control, DataStore, or
child DataWindow

row

A value identifying the row you want to test to see
if it is selected

Return value

Returns true if row in dwcontrol is selected and false if it is not
selected. If row is greater than the number of rows in dwcontrol or is 0
or negative, IsSelected also returns false.

If any argument’s value is null, in PowerBuilder and JavaScript the
method returns null.

Usage

You can call IsSelected in a script for the Clicked event to
determine whether the row the user clicked was selected.

Examples

This code calls IsSelected to test whether the current row in
dw_employee is selected. If the row is selected, SelectRow deselects it;
if it is not selected, SelectRow selects it:

This code uses the NOT operator on the return value of IsSelected to
accomplish the same result as the IF/THEN/ELSE statement above:

See also

SelectRow


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