InvokeClassFunction

PowerBuilder Native Interface

IPB_Session interface:

InvokeClassFunction method

Description

Syntax

InvokeClassFunction(pbclass cls, pbmethodID mid, PBCallInfo *ci)

Return Values

  • 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

cls = session-> GetSystemClass();
mid = session-> GetMethodID
   (cls, "double", PBRT_FUNCTION, "DA");
session-> InitCallInfo(cls, mid, ci);
ci->pArgs -> GetAt(0) -> SetPBString(mystr);
session -> InvokeClassFunction(cls, mid, ci);

Usage

See Also