Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

InvokeClassFunction – PB Docs 2019 – PowerBuilder Library

InvokeClassFunction – PB Docs 2019

InvokeClassFunction

Description

Invokes system or user global functions.

Syntax

Argument

Description

cls

The class that contains the global function. If
this is a system function, cls is obtained with
GetSystemFunctionsClass; otherwise, it is obtained with
FindGroup and FindClass, with the function name as the
group/class name.

mid

The pbMethodID returned by
GetMethodID.

ci

A pointer to a preallocated PBCallInfo
structure.

Return value

PBXRESULT. Returns PBX_OK for success, or one of the following for
failure:

PBX_E_INVALID_ARGUMENT

PBX_E_INVOKE_METHOD_INACCESSABLE

PBX_E_INVOKE_WRONG_NUM_ARGS

PBX_E_INVOKE_REFARG_ERROR

PBX_E_INVOKE_METHOD_AMBIGUOUS

PBX_E_INVOKE_FAILURE

PBX_E_INVOKE_FAILURE

Examples

This example gets the PowerBuilder system class and uses it to
invoke the double function:

Usage

On return, this method allocates enough spaces for the arguments,
and then initializes arguments and return value. You must set
appropriate values in the PBCallInfo structure. Note that the structure
itself must have been allocated before the call.

See also

InvokeObjectFunction


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x