Function call between scripting languages

xiaoxiao2021-03-06  15

You cannot call the Microsoft Visual Basic® Script Edition (VBScript) function directly in the Microsoft JScript® code. This is because the data types used in each language are different:

• VBScript has only one data type, namely Variant, which can contain many different types of data. • JScript has a primitive data type for strings, numbers, and boolean values, and reference data types for objects and arrays.

VBScript can explain the JScript primitive data type, so you can pack the desired function in a custom VBScript function. For this, please see the following code example.