Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsScriptMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Windows MBS Win Plugin 10.0 No Yes No Yes, Windows only No
Function: The class to run Windows Scripts.
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:

ScriptControl from Microsoft is 32-bit only. If you need 64-bit, please install a 64-bit alternative MSScript.ocx file:

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:

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

WindowsScriptErrorMBS   -   WindowsSerialPortsMBS

MBS Xojo PDF Plugins