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

InvokePBFunction – PB Docs 2021 – PowerBuilder Library

InvokePBFunction – PB Docs 2021

InvokePBFunction

PowerScript function

Description

Invokes the specified user-defined window function in the child
window contained in a PowerBuilder window ActiveX control.

Applies to

Window ActiveX controls

Syntax

Argument

Description

activexcontrol

Identifier for the instance of the PowerBuilder Window
ActiveX control. When used in HTML, this is the NAME attribute
of the object element. When used in other environments, this
references the control that contains the PowerBuilder window
ActiveX.

name

String specifying the name of the user-defined window
function. This argument is passed by reference.

numarguments (optional)

Integer specifying the number of elements in the arguments
array. The default is zero.

arguments (optional)

Variant array containing function arguments. In
PowerBuilder, Variant maps to the Any datatype. This argument is
passed by reference.

If you specify this argument, you must also specify
numarguments. If you do not specify this argument and the
function contains arguments, populate the argument list by
calling the SetArgElement function once for each
argument.

JavaScript cannot use this argument.

Return value

Integer.

Returns 1 if the function succeeds and -1 if an error occurs.

Usage

Call this function to invoke a user-defined window function in the
child window contained in a PowerBuilder window ActiveX control.

To check the PowerBuilder function’s return value, call the
GetLastReturn function.

JavaScript cannot use the arguments argument.

Examples

This JavaScript example calls the InvokePBFunction function:

This VBScript example calls the InvokePBFunction function:

See also

GetLastReturn

SetArgElement

TriggerPBEvent


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