print Method


 

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

 

clip0093 print() : void

Writes the current line terminator to the standard output stream.  i.e. this method prints an empty line.

clip0093 print(String value) : void

Writes the specified string value, followed by the current line terminator, to the standard output stream.  i.e. this method prints the supplied value.

clip0093 print(String format, Object[] args) : void

Writes the specified array of objects, followed by the current line terminator, to the standard output stream using the specified format information.

clip0093 print(Object value) : void

Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.

clip0093 print(Boolean value) : void

Writes the text representation of the specified Boolean value, followed by the current line terminator, to the standard output stream.

clip0093 print(Int32 value) : void

Writes the text representation of the specified 32-bit signed integer value, followed by the current line terminator, to the standard output stream.

clip0093print(Int64 value) : void

Writes the text representation of the specified 64-bit signed integer value, followed by the current line terminator, to the standard output stream.

clip0093 print(Single value) : void

Writes the text representation of the specified single-precision floating-point value, followed by the current line terminator, to the standard output stream.

clip0093 print(Double value) : void

Writes the text representation of the specified double-precision floating-point value, followed by the current line terminator, to the standard output stream.

clip0093 print(Decimal value) : void

Writes the text representation of the specified Decimal value, followed by the current line terminator, to the standard output stream.

clip0093print(Char value) : void

Writes the specified Unicode character, followed by the current line terminator, value to the standard output stream.

clip0093 print(Char[] buffer) : void

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

 

Language Specific Issues