Enables print command.
/print[+ | -] |
Arguments
- +| -
-
By default, /print or /print+ causes the compiler to enable the use of the print statement. An example of a print statement is,
В
Copy Codeprint("hello world");Specifying /print- will disable the print command.
Remarks
You would use /print- if your .dll will be loaded into an environment that doesn't have a console.
You can set Microsoft.JScript.ScriptStream.Out to be an instance of a TextWriter object to enable print to send output elsewhere.
Example
Cause the print statement to not be defined by the compiler:
| В | Copy Code |
|---|---|
jsc /print- test.js | |
See Also
Ajax toolkit
Ajax website