From Xojo Documentation
| This item has been deprecated since version 2019r2 and should no longer be used.
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.