_Is_A (obsolete)

Description

Checks to see whether a CORBA object is an instance of a class that implements a particular interface.

This function is used by PowerBuilder clients connecting to EAServer.

Obsolete function

_Is_A is obsolete, because EAServer is no longer supported since PowerBuilder 2017.

Applies to

CORBAObject objects

Syntax

corbaobject._Is_A ( classname )

Argument

Description

corbaobject

An object of type CORBAObject that you want to test

classname

The interface that will be used for the test


Return value

Boolean.

Returns true if the class of the object implements the specified interface and false if it does not.

Usage

Before making a call to _Narrow, you can call _Is_A to verify that a CORBA object is an instance of a class that implements the interface to which you want to narrow the object.

Examples

The following example checks to see that a CORBA object reference is an instance of a class that implements n_Bank_Account:

CORBAObject my_corbaobj
n_Bank_Account my_account
...
...
if (my_corbaobj._is_a("n_Bank_Account")) then
    my_corbaobj._narrow(my_account,"n_Bank_Account")
end if
my_account.withdraw(100.0)

See also

_Narrow (obsolete)