The print method is provided as a convenient alternative to using the System.Console.WriteLine or System.out.println methods. A large number of overloaded types are directly supported.
Java (J#) users should be aware the unlike System.Console.WriteLine, System.out.println is not captured by the AxWscript console window. It is therefore recommended that you use the print method or System.Console.WriteLine as an alternative.
Note: JScript.NET supports it's own print method
IMPORTANT: within a script region, you can call the print method
without reference to the ScriptBase class or AlintexScript namespace.
ScriptBase
Namespace: AlintexScript
Static/Shared Public Methods
|
Writes the current line terminator to the standard output stream. i.e. this method prints an empty line. |
|
Writes the specified string value, followed by the current line terminator, to the standard output stream. i.e. this method prints the supplied value. |
|
Writes the specified array of objects, followed by the current line terminator, to the standard output stream using the specified format information. |
|
Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream. |
|
Writes the text representation of the specified Boolean value, followed by the current line terminator, to the standard output stream. |
|
Writes the text representation of the specified 32-bit signed integer value, followed by the current line terminator, to the standard output stream. |
|
Writes the text representation of the specified 64-bit signed integer value, followed by the current line terminator, to the standard output stream. |
|
Writes the text representation of the specified single-precision floating-point value, followed by the current line terminator, to the standard output stream. |
|
Writes the text representation of the specified double-precision floating-point value, followed by the current line terminator, to the standard output stream. |
|
Writes the text representation of the specified Decimal value, followed by the current line terminator, to the standard output stream. |
|
Writes the specified Unicode character, followed by the current line terminator, value to the standard output stream. |
|
Writes the specified array of Unicode characters, followed by the current line terminator, to the standard output stream. |
Example
IMPORTANT: within a script region, you can call the print method without reference to
the ScriptBase class or AlintexScript namespace, as shown in example 3 below.
NOTE: see script "scriptinfo.*" in the Tutorial folder for an
example of using the print method in each supported language.
[VB.NET]
1.
...
AlintexScript.ScriptBase.print("hello world")
2.
import AlintexScript
...
ScriptBase.print("hello world")
3.
#region "Script"
print("hello world")
#end region
[C#]
1.
...
AlintexScript.ScriptBase.print("hello world");
2.
using AlintexScript;
...
ScriptBase.print("hello world");
3.
#region Script
print("hello world")
#endregion
[Java (J#)]
1.
...
AlintexScript.ScriptBase.print("hello world");
2.
import AlintexScript.*;
...
ScriptBase.print("hello world");
3.
#region Script
print("hello world");
#endregion
1. print("hello world");
See Also