From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use Slider.Maximum as a replacement.
Property (As Integer )
The maximum value of the slider. The default is 100.
This example is in the Open event of the control. It sets the minimum and maximum values of the Slider.