ph_executescript PowerHome formula function
Description
Executes a single WSH (Windows Script Host) statement.
Syntax
ph_executescript ( n, s, s )
Argument |
Description |
n
|
Timeout. Specifies the time in milliseconds after which the user will be presented with an option to continue or discontinue execution of the script. A value of –1 means the script will never timeout. A value of 0 will fire the timeout event when it is detected that the script is hung.
|
s
|
Additional code to be added to the Windows Script Host control. To not add code, pass in a blank string.
|
s
|
The statement to execute. The statement can be a function, but the result will not be returned
|
Return value
Integer. 0 is returned upon success, 2 with an Initialize error, 3 with an AddCode error, and 4 with execute error.