Create an object of StringBuffer type.
1 stringBuffer
<stringBuffer
name='name'
mode='mode'
trim='true|false'
>
<value /> +
</stringBuffer>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the variable to be referenced later. | |||
Amode | string | unquoted to avoid the quotation marks when this String is used in a query or in a function. | |||
Atrim | boolean | false | true to remove the blank spaces which exist at the beginning and/or at the end of the string of characters. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evalue | String | Variable of entry of the SQL Object. |
Returns | |
---|---|
Type | Description |
Object | Object of StringBuffer type. |
Example
Define a StringBuffer with a string.
Copy
<xsql-script name='stringbuffer_sample'> <body> <set name='a'>hola </set> <stringBuffer name='buf'> This is a string [<a/>] keeping the spaces. </stringBuffer> <println><buf/></println> </body> </xsql-script>