Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is a MSScriptControl.ScriptControl component

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article focuses on "what is a MSScriptControl.ScriptControl component", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are MSScriptControl.ScriptControl components"?

MSScriptControl.ScriptControl component instance object Properties

The attribute name type remarks AllowUIBOOL detects whether the user's interface element is allowed to run. If False, interface elements such as message boxes are not visible. The CodeObjectObject script exposes the object called by the host. Read only. The component library module provided by the ModulesModules host to the script. Read only. (COM components usually provide users with a collection of objects that can be left for secondary development in the form of object collection, each collection is a Modules) LanguageString sets or gets the language interpreted by the script engine, such as VBScript, JScript. The name of the NameString script engine. Read only. ProceduresProcedures returns the collection of procedures defined in the module SitehWndHWND displays the parent window handle of the UI in the script StateEnum sets or returns the state of the control. If 0, the control only executes statements but does not forward events, and 1 is the object forwarding events accepted by this control. The timeout value of the execution script for the TimeoutLong control, and-1 indicates that the UseSafeSubsetBOOL setting does not time out or returns whether the host program is concerned about security. The security level of the host program can set the ErrorError error object from this property, which returns an error object when an error occurs

MSScriptControl.ScriptControl component instance method name

Method name parameter function AddCodeCode As String adds scripts to be executed AddObjectName As String, Object As Object, [AddMembers As Boolean = False] to the script engine, so that the methods provided by the object can be used in the script. The EvalExpression As String expression evaluation ExecuteStatementStatement As String interprets and executes the script statement Reset discards all objects and code and sets the State attribute to 0. RunProcedureName As String, ParamArray Parameters () As Variant runs a specified procedure

MSScriptControl.ScriptControl component instance event name

Event name function when an error occurs in Error, the event occurs when the TimeOut execution process times out

How to use MSScriptControl.ScriptControl

1. Add ScriptControl to the program

2. Define an instance of ScriptControl

3. Add the script to the script engine by calling AddCode and other methods.

4. Call Run to execute the script function to be executed.

At this point, I believe you have a deeper understanding of "what is a MSScriptControl.ScriptControl component", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report