{1052,"Cannot have multiple default property/method in a Class"},
{1044,"Cannot use parentheses when calling a Sub"},
{1053,"Class initialize or terminate do not have arguments"},
{1058,"'Default' specification can only be on Property Get"},
{1057,"'Default' specification must also specify 'Public'"},
{1005,"Expected '('"},
{1006,"Expected ')'"},
{1007,"Expected ']'"},// missing in the online documentation
{1011,"Expected '='"},
{1021,"Expected 'Case'"},
{1047,"Expected 'Class'"},
{1025,"Expected end of statement"},
{1014,"Expected 'End'"},
{1023,"Expected expression"},
{1015,"Expected 'Function'"},
{1010,"Expected identifier"},
{1012,"Expected 'If'"},
{1046,"Expected 'In'"},
{1026,"Expected integer constant"},
{1049,"Expected Let or Set or Get in property declaration"},
{1045,"Expected literal constant"},
{1019,"Expected 'Loop'"},
{1020,"Expected 'Next'"},
{1050,"Expected 'Property'"},
{1022,"Expected 'Select'"},
{1024,"Expected statement"},
{1016,"Expected 'Sub'"},
{1017,"Expected 'Then'"},
{1013,"Expected 'To'"},
{1018,"Expected 'Wend'"},
{1027,"Expected 'While' or 'Until'"},
{1028,"Expected 'While,' 'Until,' or end of statement"},
{1029,"Expected 'With'"},
{1030,"Identifier too long"},
{1032,"Invalid character"},// incorrectly listed as 1014 in the online documentation
{1039,"Invalid 'exit' statement"},
{1040,"Invalid 'for' loop control variable"},
{1031,"Invalid number"},// incorrectly listed as 1013 in the online documentation
{1037,"Invalid use of 'Me' keyword"},
{1038,"'loop' without 'do'"},
{1048,"Must be defined inside a Class"},
{1042,"Must be first statement on the line"},
{1041,"Name redefined"},
{1051,"Number of arguments must be consistent across properties specification"},
{1001,"Out of Memory"},
{1054,"Property Set or Let must have at least one argument"},
{1002,"Syntax error"},
{1055,"Unexpected 'Next'"},
{1033,"Unterminated string constant"}// incorrectly listed as 1015 in the online documentation
};
#endregion
#region constructors
/// <summary>
/// Initializes a new VBScript engine instance.
/// </summary>
publicVBScriptEngine()
:this(null)
{
}
/// <summary>
/// Initializes a new VBScript engine instance with the specified name.
/// </summary>
/// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param>
publicVBScriptEngine(stringname)
:this(name,WindowsScriptEngineFlags.None)
{
}
/// <summary>
/// Initializes a new VBScript engine instance with the specified options.
/// </summary>
/// <param name="flags">A value that selects options for the operation.</param>
/// Initializes a new VBScript engine instance with the specified name and options.
/// </summary>
/// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param>
/// <param name="flags">A value that selects options for the operation.</param>
/// Initializes a new VBScript engine instance with the specified programmatic
/// identifier, name, and options.
/// </summary>
/// <param name="progID">The programmatic identifier (ProgID) of the VBScript engine class.</param>
/// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param>
/// <param name="flags">A value that selects options for the operation.</param>
/// <remarks>
/// The <paramref name="progID"/> argument can be a class identifier (CLSID) in standard
/// GUID format with braces (e.g., "{F414C260-6AC0-11CF-B6D1-00AA00BBBB58}").
/// Initializes a new VBScript engine instance with the specified programmatic
/// identifier, name, list of supported file name extensions, and options.
/// </summary>
/// <param name="progID">The programmatic identifier (ProgID) of the VBScript engine class.</param>
/// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param>
/// <param name="fileNameExtensions">A semicolon-delimited list of supported file name extensions.</param>
/// <param name="flags">A value that selects options for the operation.</param>
/// <remarks>
/// The <paramref name="progID"/> argument can be a class identifier (CLSID) in standard
/// GUID format with braces (e.g., "{F414C260-6AC0-11CF-B6D1-00AA00BBBB58}").