New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Search in
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by sbeadle | October 16, 2026 04:38 PM
This is an evolving article and new items will be added periodically
Geo SCADA Expert 2025 R2 adds support for scripts that are written in the JavaScript V8 scripting language. V8 is Google's open-source high-performance JavaScript engine. It is used in Chrome, Edge, and other major browsers.
This page is a guide to writing mimic and global script code in the JavaScript language now available from Geo SCADA 2025 R2 (88) and up.
This guide notes some key differences with script written in VBScript and includes conversion notes.
When converting scripts, note that:
The MsgBox function in VBScript is not available in JavaScript. For this language we have provided Alert, Confirm and Prompt methods to enable simple user interaction. Examples of their use are:
let result;
result = Window.Confirm("Press a button!\nEither OK or Cancel.")
if (result == true)
{
Window.Alert("You clicked ok");
}
let name;
name = Window.Prompt("Please enter your name", "name")
if (name != null)
{
Window.Alert("You entered: " + name);
}
else
{
Window.Alert("You clicked Cancel");
}
For more information, see the ‘Window Functions’ branch of topics in the Scripting Guide in the online help.
An alternative to using these functions to replace MsgBox is to use the Form API features. There is an example of this in the default installed configuration. See in the group Symbol Library.~Config.Script Libraries where a library is used to provide similar facilities to MsgBox. The script library is called MsgBox for V8 and a test mimic MsgBox for V8 Test.
The LocalTimeToUTC and UTCToLocalTime Global functions are not supported by scripts that are written in the JavaScript (V8) scripting language.
This is because the JavaScript language already includes adequate functionality for Date objects with local and UTC time methods.
See this external web site for reference information:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
When translating either JScript or VBScript code to JavaScript V8, please note the following items:
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.