Management of sub tablesBrowse a sub tableSuppose you have constructed a form, with an 'article' sub-table containing the 'quantity' and 'price' fields, as well as a simple 'total' field. var Float t := 0 It is important to note that 'each' takes as parameter not the name of the sub table, but the name of one of its fields. Finally, the 'sum' function is used to total all the values \u200b\u200bof a field (a column in a sub table). var Float q := sum quantity is equivalent to var Float q := 0 Creation, deletion of rows in a sub tableTo add a line, use the 'create' instruction: create quantity or create quantity "foo" or create quantity "foo" As in the case of 'each', the table is not identified by its name, but by the name of one of its fields. Also, in this example, 'foo' is the code for the new line to be created. To delete it: delete quantity "foo" You can also delete all the lines at once: delete_all quantity Warning: as a sub table must not be empty, otherwise the list of associated fields would be lost, if you destroy all the rows of a sub table, an empty row will be added automatically. Go specifically to a lineFinally, you can access one of the lines: group quantity "foo" Which is equivalent to: each quantity |