Description
This tool function supplies a component for the GUI to edit. A
component is a Glish record with the fields and structure
described in the componentlist tool.
The optional which argument is to allow multiple componenteditors
to simultaneously edit different components in a componentlist. It
contains the index of the component in the main list. This index
can be obtained at a later time using the which tool function described
below.
This scheme will break down if the main list has been sorted or
components have been added or deleted while an editor is editing a
copy of a component.
The which argument can be totally ignored if the componenteditor
is not being used in conjunction with a parent list, or if you are
separately keeping track of which component goes where. Otherwise
it should be an integer between 1 and the parent list length
Arguments
component |
|
The component to be viewed and/or edited |
|
|
Allowed: |
Any Glish record with the appropriate fields |
|
|
Default: |
no default |
which |
|
The index of the component in a parent table |
|
|
Allowed: |
Any integer (see description) |
|
|
Default: |
0 |