Configure the reload of a script
Configure the engine's behavior during a reload by using the ConfigureReload method.
Example
In this example, any script execution error should be returned in qErrorData by the GetProgress method.
1. Configure the reload of the script. The handle of the request is -1 because the ConfigureReload method applies at global level.
qUseErrorData is set to true so that any script execution error is returned in qErrorData.
The script execution should not be halted in case of errors (qCancelOnScriptError is set to false).
The client sends:
The engine returns:
The configuration is done.
2. Set an invalid script.
The client sends:
The engine returns:
3. Reload the script. The handle of the request is 1 because the app uses 1 as a handle.
The client sends:
The engine returns:
The reload is successful. The script has been entirely executed even if it contains an error.
4. Get information about the call to DoReload.
The client sends:
The engine returns:
qErrorData describes the script execution error.