Set the value that contains the array in the indicated position.
 

1 array.set

<array.set name='name'>
    <array /> ?
    <row /> !
    <value /> !
</array.set>
Example

Change the first element of an array using the number as an index.

Copy
<xsql-script name='array_test1'>
    <body>
        <set name='m_cities'>
            <array>
                <string>London</string>
                <string>Barcelona</string>
                <string>Paris</string>
            </array>
        </set>


        <array.set>
     	    <m_cities/>
      	    <number>0</number>              
      	    <string>Rome</string> 	 
        </array.set>   
        
        <println><m_cities/></println>
        
    </body>
</xsql-script>

The result is:

Copy
[Rome,Barcelona,Paris]