Print a string in an object of byte.matrix type in a row, through a column..
1 print.at
<print.at
buf='buf'
row='row'
col='col'
>
<text /> ?
</print.at>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Abuf | string | Name of the object byte.matrix with its dimensions previously defined through the tag byte.matrix | |||
Arow | integer | Row in which you want to insert the string. | |||
Acol | integer | Column inside the row in which the string will begin. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etext | String |
Returns | |
---|---|
Type | Description |
String | Returns the value passed to the function. |
Example
insert in the matrix 4 rows with data of customer addresses.
Copy
<xsql-script name='scrit_print_at'> <body> <set name='m_page'> <byte.matrix rows='4' cols='80' /> </set> <print.at buf='m_page' row='0' col='10'>The ACME company</print.at> <print.at buf='m_page' row='1' col='40'>San Francisco</print.at> <print.at buf='m_page' row='2' col='0' >California</print.at> <print.at buf='m_page' row='3' col='30' >(02810) California EU.</print.at> <println> <m_page /> </println> </body> </xsql-script>
Returns:
Copy
[The ACME company,San Francisco,California,(02810) California EU.]