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

IsValid – PB Docs 2019 – PowerBuilder Library

IsValid – PB Docs 2019

IsValid

PowerScript function

Description

Determines whether an object variable is instantiated — whether its
value is a valid object handle.

Syntax

Argument

Description

objectvariable

An object variable or a variable of type Any — typically
a reference to an object that you are testing for
validity

Return value

Boolean.

Returns true if objectvariable is an instantiated object. Returns
false if objectvariable is not an object, or if it is an object that is
not instantiated. If objectvariable is null, IsValid returns null.

Usage

Use IsValid instead of the Handle function to determine whether a
window is open.

Examples

This statement determines whether the window w_emp is open and if it
is not, opens it:

This example returns -1 because the IsValid function returns false.
Although the objectvariable argument is a valid string, it is not an
instantiated object. The IsValid method would return true only if la_value
was an instantiated object:

See also

Handle


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