Platforms to show: All Mac Windows Linux Cross-Platform

WindowsScriptMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Windows MBS Win Plugin 10.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The class to run Windows Scripts.
Example
dim w as new WindowsScriptMBS

w.Language = "JScript"
w.AddCode "function Test(a,b) { return a+b; }"

dim p(-1) as string = array("Hello ", "World from JavaScript")
dim x as string = w.Run("Test", p)

MsgBox x

You may also read this MSDN page:
http://msdn.microsoft.com/en-us/library/ms756007%28VS.85%29.aspx

ScriptControl from Microsoft is 32-bit only. If you need 64-bit, please install a 64-bit alternative MSScript.ocx file:
http://www.eonet.ne.jp/~gakana/tablacus/scriptcontrol_en.html

Constants

Constant Value Description
kLanguageJScript "JScript" One of the language constants. Using this constant you can switch to JavaScript.
kLanguageVBScript "VBScript" One of the language constants. Using this constant you can switch to VBScript.

This class has no sub classes.

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS Win Plugin.


WindowsScriptErrorMBS   -   WindowsSerialPortsMBS


The biggest plugin in space...