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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
I think this will not work. I reworked and used an int as source instead.