Equinox Online Help - Language Reference - A to Z
ListInsert |
|
---|---|
Applies to | |
Syntax | ListInsert ListItem, IndexExpression, StringExpression |
Action | [Statement] Inserts a new item within a combo field. |
Scope | Only usable in form methods. |
Notes | This statement is used to insert values within the combo field specified by the ListItem parameter. The value to insert is passed by the StringExpression parameter and the position to insert the value is determined by IndexExpression. If IndexExpression is -1 the value is inserted at the end of the list. The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero. |
Category | Combo lists |
See Also | ListAppend, ListCount, ListDelete, ListDeleteString, ListEmpty, ListFind, ListRead, ListReset, ListSpace |
Example | This example inserts a value named Hants to position 5 in an existing list. ListInsert County, 5, "Hants" |