Skip to main content Link Menu Expand (external link) Document Search Copy Copied

void setOptionName(int index, string name)

Sets the name of the option at the given index

Parameters

  • index - The index of the option to be renamed
  • name - The new name of the option

Example

VariableConfig config ({"Option 1", "Option 2", "Option 3"}, "Title");
config.setOptionName(0, "New Option 1");