_Is_A PowerScript function
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.
Controls
CORBAObject objects
Syntax
|
1 |
<span>corbaobject</span>.<span>_Is_A</span> ( <span>classname </span>) |
|
Argument |
Description |
|---|---|
|
corbaobject |
An object of type CORBAObject that you |
|
classname |
The interface that will be used for the |
Return Values
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:
|
1 |
CORBAObject my_corbaobj |
|
1 |
n_Bank_Account my_account |
|
1 |
... |
|
1 |
... |
|
1 |
if (my_corbaobj.<span>_is_a</span>("n_Bank_Account")) then |
|
1 |
my_corbaobj._narrow(my_account,"n_Bank_Account") |
|
1 |
end if |
|
1 |
my_account.withdraw(100.0) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest