ScriptControl Object Members
In This Topic
Public Methods
AddCode | Adds and immediately executes specified JavaScript code to a ScriptControl. |
AddObject | Exports a native COM Object to JavaScript. |
Eval | Evaluates a JavaScript expression and returns the result. |
ExecuteStatement | Executes a specified JavaScript statement. |
Reset | Reinitializes the scripting engine. |
Run | Executes a JavaScript function. |
Public Properties
AllowUI | Sets or returns a Boolean value that indicates whether a running script, or the ScriptControl itself, is allowed to display user-interface elements. |
CodeObject | Reserved. |
Error | Returns an Error object containing information about the script error. |
EvaluationExpired | Indicates the evaluation period of unlicensed control has expired. |
Language | Sets or returns the name of the scripting language being used. |
Modules | Contains a collection of Module objects. |
Procedures | Contains a collection of Procedure objects. |
ProductVersion | The formal version of this product. |
SitehWnd | Contains a reference to a hWnd that will be used to display GUIs. |
State | Returns the mode of the ScriptControl object. |
Timeout | Specifies the maximum number of milliseconds the script will run before an error will be generated. |
UseSafeSubset | Prevents access to selected objects and procedures that can compromise an application’s security. |
WorkstationUUID | The unique hash of developer workstation where this product is installed. |
Events
Error | The Error event occurs when the scripting engine detects some sort of error. |
Timeout | The Timeout event occurs when the time specified in the Timeout property has elapsed. |
See Also