Name
Choice.Insert -- insert new entry (V1.1)
Synopsis
moai.DoMethod(id, "Insert", pos, e$)
Function
Insert the entry specified in e$ into the choice widget. The insert position is specified in the pos argument. The new entry will be added in front of the entry specified by pos. This can be an absolute index position starting at 0 for the first entry or one of the following special values:

Top
Insert as first entry.

Active
Insert before the active entry. If there is no active entry, the entry will be inserted at the very top of the entry list.

Bottom
Insert as last entry.

If pos is bigger or equal to the number of entries in the choice widget, the entry will be inserted as the last entry.

Note that on AmigaOS and compatibles this feature is only available on MUI 4.0 or higher.

Inputs
id
id of the choice object
pos
insert position as absolute number or special value (see above)
e$
entry to insert

Show TOC