Arbortext Command Language > Functions by Alphabetical Listing > vbscript
  
vbscript
string = vbscript (expr[, window])
This function sends the string expr to the Microsoft Windows VBScript interpreter to be evaluated, returning the result as a string. If the window parameter is not specified, the VBScript expression is evaluated in the global VBScript script context so previously defined VBScript functions are accessible.
The optional window parameter is the identifier of a XUI dialog box that has a script context. If window is provided, the script executes in that dialog box’s script context.
Example
path = vbscript('Application.ActiveDocument.DocumentURI')
* 
In the Microsoft Script Engine interfaces, “True” is represented by minus one (1) and “False” by zero (0).
Related Topics
javascript function
jscript function
perlscript function