If you need to call a VBScript script JScript built-in functions, you should write a VBScript user defined function, and then call the utility as the JScript script like JScript function calls the user-defined functions. For example, if you want to call VBSCript built-in function is FormatCurrency (), you can state the following custom function:
Code:
<SCRIPT LANGUAGE = "VBSCRIPT" RUNAT = "SERVER">
Function FormatValue (Value)
FormatValue = FormatCurrency (Value)
End Function
</ SCRIPT>
Then in the JScript code can be the same as ordinary JScript function calls FormatValue () has. A similar approach can also be used to achieve VBScript code calls the JScript function. Apply the same rules, we can call in any script in any user-defined function. However, from within the JScript script that calls a VBScript procedure with no parameters (Sub) should be slightly pay attention, this time in the JScript should be like calling a JScript function with no arguments, like call it, such as the use foo () call to VBScript Sub foo process.
Bookmarks