Slider instance value when accessed through "execute ST-code"

pernockham
2025-02-06
2025-02-07
  • pernockham - 2025-02-06

    I have a time which I want to modify with a slider.

    I have confirmed it is possible to set the value of the slider by to_real(time) (I can see that the slider changes according to 'my_time_value's value).

    Slider variable: to_real(my_time_value);

    However I fail to access the current slider instance value when I want to write back the value as time (write to a variable will not work as I need a type-conversion before assignment).

    my_time_value := to_time(slider-instance-value);

    I tried with this^.? but could not see anything interesting and also THIS^.GEN_Instance.? but nothing resemble what could be the sliders value. Anyone that knows? Thanks!

     
  • pernockham - 2025-02-07

    I think this will not work. I reworked and used an int as source instead.

     

Log in to post a comment.