Automic UC4 script: Storing user-input into an array
<p>First: I'm using UC4 - dialog version 9.00A Build 234-162.</p>

<p>I'm trying to read a variable number of input fields (via :READ) and want to store their values into an array:</p>

<pre><code>:DEFINE &amp;FILE#, string, 10
:PUBLISH &amp;FILE#[], , "WORKFLOW"

:BEGINREAD "Files"
:  READ &amp;CNT#, , "Number of files", "3"
:ENDREAD

:SET &amp;IDX# = 1
:BEGINREAD "Files"
:  WHILE &amp;IDX# LE &amp;CNT#
:    SET &amp;IDX# = ADD(&amp;IDX#, 1)
:    READ &amp;FILE#[&amp;IDX#], ,"???"
:  ENDWHILE
:ENDREAD
</code></pre>

<p>Problem is: Now I'm getting the error message U0020310 telling me the first parameter of :READ has to be a variable.</p>

<p>The Question: What am I missing? Is it impossible to use :READ with arrays? If thats the case: How can I work around that?</p>