SetMax

                                   +-1-+
>>-aSliderControl~SetMax(--max--,--+---+--)--------------------><
                                   +-0-+


The SetMax method sets the maximum logical position for a slider and redraws the slider, if required.

Arguments:

The arguments are:

min

The maximum position of the slider.

redraw

The redraw flag. If you specify 1 or omit this argument, the slider is redrawn after the maximum position is set. If you specify 0, the slider is not redrawn.

Return value:

0

The maximum position was set successfully.

-1

You omitted min.