table of contents
| GOLF(2gg) | Development | GOLF(2gg) |
NAME¶
print-out - (output)
PURPOSE¶
Print data out.
SYNTAX¶
print-out <string> [ <length> ] [ url-encode | web-encode ] [ new-line ] print-out <number> new-line print-out source-file [ new-line ] print-out source-line [ new-line ]
DESCRIPTION¶
print-out outputs various kinds of data:
print-out <string> [ <length> ] [ url-encode | web-encode ] [ new-line ]
set-string mydata="Hello world" print-out mydata
Writing to client, outputting text followed by a horizontal rule - the text is output to a client (such as browser) as it is, and the browser will interpret tags "<br/>" and "<hr/>" as a line break and a horizonal line and display them as such:
print-out "This is a non-encoded output<br/>" new-line print-out "<hr/>"
Create a query text string by means of write-string statement:
// // Construct the run-time text of dynamic SQL // write-string qry_txt
@select * from <<print-out table_name>> end-write-string
@<a href='<<print-out "/update">>?item=<<print-out item_name url-encode>>'>Update</a>
print-out "We use <hr/> markup" web-encode
If "length" clause is used, then only <length> leading bytes of <string> are output.
If "new-line" clause is used, then a new line ("\n") is output after <string>.
Note that all bytes of <string> are output, even if <string> contains null-bytes.
print-out <number> [ new-line ]
If "new-line" clause is used, then a new line ("\n") is output after <number>.
To output a number to a client:
set-number x = 100 print-out x
print-out source-file [ new-line ]
This outputs the file name (relative to the source code directory) of the source file where the statement is located; this is often used for debugging.
If "new-line" clause is used, then a new line ("\n") is output afterwards.
@This file is <<print-out source-file>>
print-out source-line [ new-line ]
This outputs the line number in the source file where the statement is located. It is often used for debugging purposes.
If "new-line" clause is used, then a new line ("\n") is output afterwards.
@This line is #<<print-out source-line>>
SEE ALSO¶
Output
finish-output flush-output output-statement print-format print-out print-path See all documentation
| $VERSION | $DATE |