iOS Question Changing slider minimum and maximum limits

doodooronron

Member
Licensed User
I need to change the minimum and maximum values of a slider under program control. I've had a good search but can't find how to do this.

The slider is set up using the designer.

Can anyone point me in the right direction?
 

doodooronron

Member
Licensed User
Let's mySlider is a name of your control
B4X:
Dim no As NativeObject = mySlider
no.SetField ("minimumValue", 50)
no.SetField ("maximumValue", 100)
Thanks, that looks like it's just what I need.
However, when I try to run it, I get an error that the slider is not initialised.
I presume that the format would be something like "no.Initialize(something, something......", but I'm struggling to get anything to work.
Very basic, I know, but still tricky for a beginner.
 
Upvote 0
Top