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

IsAncestorObjectOf – PB Docs 2018 – PowerBuilder Library

IsAncestorObjectOf – PB Docs 2018

IsAncestorObjectOf

Description

Determines whether the current PBDOM_OBJECT is the ancestor of
another PBDOM_OBJECT.

Syntax

Argument

Description

pbdom_object_name

The name of the PBDOM_OBJECT

pbdom_object_ref

The PBDOM_OBJECT to check against

Return value

Boolean.

Returns true if the current PBDOM_OBJECT is the ancestor of the
referenced PBDOM_OBJECT, and false otherwise.

Throws

EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE  — This PBDOM_OBJECT
object is not associated with a derived PBDOM_OBJECT class
object.

EXCEPTION_INVALID_ARGUMENT  — The input PBDOM_OBJECT is invalid.
This can happen if it has not been initialized properly or it is a null
object reference.

Examples

The following code fragment uses the IsAncestorObjectOf method and
creates a structured document. In the fragment, pbdom_elem_1 represents
the  pbdom_elem_1 element. Because it is an ancestor of pbdom_elem_3,
which represents the  pbdom_elem_ element, the call to
IsAncestorObjectOf returns true.

The preceding code fragment creates the following document:

Usage

The IsAncestorObjectOf method determines whether the current
PBDOM_OBJECT is the ancestor of another PBDOM_OBJECT.


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