Error | Description |
Property Column As Long | Source code column position where the error occurred |
Property Description As String | Friendly description of error |
Property HelpContext As Long | Context ID for the topic with information on the error |
Property HelpFile As String | File in which help for the error can be found |
Property Line As Long | Source code line number where the error occurred |
Property Number As Long | Error number |
Property Source As String | Source of the error |
Property Text As String | Line of source code on which the error occurred |
Sub Clear | Clear the script error |
Module | Description |
Property CodeObject As Object | Object exposed by the scripting engine that contains methods and properties defined in the code added to the module |
Property Name As String | Name of the module |
Property Procedures As IScriptProcedureCollection | Collection of procedures that are defined in the module |
Sub AddCode(ByVal Code As String) | Add code to the module |
Sub ExecuteStatement(ByVal Statement As String) | Execute a statement within the context of the module |
Function Eval(ByVal Expression As String) | Evaluate an expression within the context of the module |
Function Run(ByVal ProcedureName As String, [ParamArray Parameters() As Variant]) | Call a procedure defined in the module |
Modules | Description |
Property _NewEnum As Unknown | (undocumented) |
Property Count As Long | Number of modules |
Property Item(ByVal Index) As IScriptModule | Get a module indexed by position or module name |
Function Add(ByVal Name As String, [Object]) As IScriptModule | Add a new module |
Procedure | Description |
Property HasReturnValue As Boolean | True if procedure returns a value |
Property Name As String | Name of the procedure |
Property NumArgs As Long | Number of arguments that are expected |
Procedures | Description |
Property _NewEnum As Unknown | (undocumented) |
Property Count As Long | Number of procedures |
Property Item(ByVal Index) As IScriptProcedure | Get a procedure indexed by position or procedure name |
ScriptControl | Description |
Property AllowUI As Boolean | Enable or disable display of the UI |
Property CodeObject As Object | Object exposed by the scripting engine that contains methods and properties defined in the code added to the global module |
Property Language As String | Language engine to use |
Property Procedures As IScriptProcedureCollection | Collection of procedures that are defined in the global module |
Property Timeout As Long | Length of time in milliseconds that a script can execute before being considered hung |
Property UseSafeSubset As Boolean | Force script to execute in safe mode and disallow potentially harmful actions |
Sub _AboutBox | (undocumented) |
Sub AddCode(ByVal Code As String) | Add code to the global module |
Sub AddObject(ByVal Name As String, ByVal Object As Object, [ByVal AddMembers As BooleanFalse]) | Add an object to the global namespace of the scripting engine |
Sub ExecuteStatement(ByVal Statement As String) | Execute a statement within the context of the global module |
Sub Reset | Reset the scripting engine to a newly created state |
Function Eval(ByVal Expression As String) | Evaluate an expression within the context of the global module |
Function Run(ByVal ProcedureName As String, [ParamArray Parameters() As Variant]) | Call a procedure defined in the global module |
Sub Error | Event fired when any error occurs in the scripting engine |
Sub Timeout | Event fired when a script is aborted because of a timeout |
ScriptControlConstants | Description |
Const GlobalModule = Global | Name of built-in global module - can be used as an index in ScriptControl.Modules |
Const NoTimeout = -1 (HFFFFFFFF) | Setting ScriptControl.Timeout to this value prevents timeout check from occurring |
ScriptControlStates | Description |
Const Connected = 1 | Engine will execute code and sink events generated by objects added with ScriptControl.AddObject |
Const Initialized = 0 | Engine will execute code but will not sink events generated by objects added with ScriptControl.AddObject |