"replacePos"

Number of a list option to be replaced and the new text for the option.

Synopsis

setValue(string shape, "replacePos", int n, langString s);

shape.replacePos(int n, langString s);

Parameters

Parameter

Description

shape

Name of the object

n

Index of the option to be changed, starting with 1

s

New text in all languages

New text

Description

Replaces the list option "n" with the text "s".

Example

The following example replaces the 3rd item.

 main()
{
  setValue("selectionlist1", "replacePos", 3, "Replacement");
}

Assignment

Selection list