IPB_Session interface:
GetNativeInterface method
Description
Obtains a pointer to the interface of a native class.
Syntax
|
1 |
GetNativeInterface(pbobject <span>obj</span>) |
|
Argument |
Description |
|---|---|
|
obj |
A valid object handle |
Return Values
IPBX_UserObject.
Examples
This example invokes the function f_retrieve in
the native class Cmy_pbni to retrieve
a DataWindow object:
|
1 |
long f_retrieve(IPB_Session* session, pbint iarg,<br>   pbobject dwObj, pbobject extObj)<br>{<br>   Imy_pbni* pImy_pbni = NULL;<br>   pblong lRet;<br>   if (session -> IsNativeObject(extObj) )<br>   {<br>      pImy_pbni = (Imy_pbni*) session -><br>         <span>GetNativeInterface</span>(extObj);<br> <br>      lRet = pImy_pbni-> f_Retrieve(session,<br>         iarg, dwObj);<br>   }<br>   return lRet;<br>} |
Usage
Use this method in conjunction with IsNativeObject to
obtain a direct reference to the IPBX_UserObject associated
with a native class in the same PowerBuilder extension. The class
and its methods can then be accessed directly.
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest