GetArgElement
PowerScript function
Description
Returns the value in the specified argument.
Applies to
Window ActiveX controls
Syntax
|
1 |
activexcontrol.GetArgElement ( index ) |
|
Argument |
Description |
|---|---|
|
activexcontrol |
Identifier for the instance of the PowerBuilder window |
|
index |
Integer specify the argument to return. |
Return value
Any.
Returns the specified argument.
Usage
Call this function after calling InvokePBFunction or TriggerPBEvent
to access the updated value in an argument passed by reference.
JavaScript scripts must use this function to access arguments passed
by reference. VBScript scripts can use this function if they established
the argument list via calls to SetArgElement.
Examples
This JavaScript example calls the GetArgElement function:
|
1 2 3 4 5 6 7 8 9 10 11 12 |
... theArg = f.textToPB.value; PBRX1.SetArgElement(1, theArg); theFunc = "of_argref"; retcd = PBRX1.InvokePBFunction(theFunc, numargs); rc = parseInt(PBRX1.GetLastReturn()); IF (rc != 1) { alert("Error. Empty string."); } backByRef = PBRX1.GetArgElement(1); ... |
See also