| GOLF(2gg) | Development | GOLF(2gg) |
NAME¶
p-out - (output)
PURPOSE¶
Outputs a string without encoding.
SYNTAX¶
p-out <string> [ length <length> ] [ new-line ]
DESCRIPTION¶
p-out outputs a <string>, without any encoding (meaning a string is output exactly as it appears).
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.
EXAMPLES¶
To output data verbatim to a client:
set-string mydata="Hello world" p-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:
p-out "This is a non-encoded output<br/>" new-line p-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 <<p-out table_name>> end-write-string
SEE ALSO¶
Output
finish-output flush-output output-statement pf-out pf-url pf-web p-num p-out p-path p-source-file p-source-line p-url p-web See all documentation
| $VERSION | $DATE |