OnExecuteScriptFinished - cWebView2Browser

Sent whenever a script executed using ExecuteScript is finished

Type: Event

Parameters: UBigInt iExecutionId Integer iErrorCode String sResult

ParameterDescription
iExecutionIdUnique script identifier
iErrorCodeError code in case of an error (0 if successful)
sResultExecution result


Syntax
Procedure OnExecuteScriptFinished UBigInt iExecutionId Integer iErrorCode String sResult

Description

This message is sent whenever a script executed using ExecuteScript is finished.

It can be used to see if errors occurred (iErrorCode) and to handle the result of the script (sResult).

If the script does not have a result, then sResult will be the string "null". See ExecuteScript for an example of OnExecuteScriptFinished.