Including Operators in Strings

When JavaScript sees an operator, it performs the operation, even in strings. To tell JavaScript to treat an operator as a character, add the “escape” character, the backslash (\), in front of the operator.

Example:

The following exercise adds a script to the file c:\\dirname\\MyDoc.bqy to open the c:\\dirname\\YourDoc.bqy file. You can use any twoInteractive Reporting document for this exercise. Add a command button and a script to open a specificInteractive Reporting document.

Verify where the file is on your system, and copy the path to this file from your desktop. Escape the backslash in the directory path.