Arrays


next up previous
Next: Implementation
Up: An overview of Web-O-Matic and WOM
Previous: Class definitions

Arrays

The construct Array allows one to repeat a sequence of objects a specified number of times, altering this dynamically. An example is shown below, of a table whose number of rows can be set by entering a value into the first field.

<TABLE BORDER>
<TR><TH>Number of rows:
    <TD><IntegerField nrows value=10 validity=value>0>
<Array a>
    <TR><TD><TextField t>
</Array>
</TABLE>
<OnSubmit>
    (t>0) a~size[t] = nrows~value[t]
</OnSubmit>

It may be useful to have other constructs of this kind, known for technical reasons as ``free class generators''.



Jocelyn Ireson-Paine
Sat Oct 12 23:35:52 BST 1996