Invoke
Description
Calls methods in PowerBuilder native classes.
Syntax
|
1 |
Invoke(IPB_Session * session, pbobject obj, pbmethodID mid, PBCallInfo *ci) |
|
Argument |
Description |
|---|---|
|
session |
This IPB session |
|
obj |
The PowerBuilder extension object to be |
|
mid |
The pbMethodID returned by |
|
ci |
The parameters and return value setting for the |
Return value
PBXRESULT.PBX_OK for success.
Examples
In this example, the method invoked depends on the value (0, 1, or
2) of the method ID returned from the GetMethodID method:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
PBXRESULT PBNIExt::Invoke ( IPB_Session* session, pbobject obj, pbmethodID mid, PBCallInfo* ci ) { PBXRESULT result = PBX_OK; switch (mid) { case mFuncA: result = FuncA(session, obj, ci); break; case mFuncB: result = FuncB(session, obj, ci); break; case mFuncC: result = FuncC(session, obj, ci); break; default: result = PBX_E_INVOKE_FAILURE; break; } return PBX_OK; } |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest