"appendItem"

Adds an entry to a selection list.

Synopsis

setValue( string shape, "appendItem", string s);

shape.appendItem( string s);

Parameters

Parameter Description
shape Name of the object
s Text to be appended

Description

This function appends the string "s" as a new item to the end of a selection list.

Example

The following example appends five new items to "selectionlist1".

main()
{
  int cnt;
  shape list = getShape("selectionlist1");
  for(cnt = 1; cnt <= 5; cnt++)
    list.appendItem("New Item No: "+cnt); // Append
Abbildung 1. Selection List and five new items

Assignment

Selection list