Purpose | The xout statement is used to write string data to the output stream. | |||||
Format |
xout({body}) nocode; xout({body}); {nocode} |
(optional) if absent it specifies that Superx++ statements enclosed in the {body} of the xout statement are to be processed before being written to the output stream. |
{body} |
the string data to be written to the output stream or a Superx++ statement that evaluates to a string |
|
|
Example #1 |
xout("Hello World!"); Prints the string Hello World! to the output stream |
|||||
Example #2 |
xout("Hello " + "World!"); Prints the string Hello World! to the output stream |
|||||
Example #3 |
xout(MyEmployee.GetSalary()); Gets the salary from the MyEmployee object via the method GetSalary and writes the result to the output stream |
|||||
Example #4 |
xout(MyEmployee.GetSalary()) nocode;
Writes the XML element eval and its two attributes to the output stream as follows: |