GetNativeInterface
Description
Obtains a pointer to the interface of a native class.
Syntax
|
1 |
GetNativeInterface(pbobject obj) |
|
Argument |
Description |
|---|---|
|
obj |
A valid object handle |
Return value
IPBX_UserObject.
Examples
This example invokes the function f_retrieve in the native class
Cmy_pbni to retrieve a DataWindow object:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
long f_retrieve(IPB_Session* session, pbint iarg, pbobject dwObj, pbobject extObj) { Imy_pbni* pImy_pbni = NULL; pblong lRet; if (session -> IsNativeObject(extObj) ) { pImy_pbni = (Imy_pbni*) session -> GetNativeInterface(extObj); lRet = pImy_pbni-> f_Retrieve(session, iarg, dwObj); } return lRet; } |
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