"value"

Sets the current value of a slider.

Synopsis

setValue(string shape,"value",int v);

getValue(string shape,"value",int &v);

shape.value(int v);

Parameter

Parameter Description
shape Name of the object
v The current value

Description

Sets the current value of a slider.

Example

The following example sets the current value of a slider to 45 and queries the value.

main(bool enter)
{
  SLIDER1.value(45);
  int val;
  getValue("SLIDER1","value",val);
  DebugN("Current value:", val);
}

Assignment

Slider