MAX

MAX N,V

SET THE MAXIMUM VALUE V OF THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameters: 2
  • Group: System Objects

ACTION

The command MAX N,V set the maximum value V to the system object designated by its number N.

The system object N is of type : SCROLL_BAR, TRACK_BAR, PROGRESS_BAR, SPIN.

The command POSITION and the function POSITION() have values between MIN and MAX.

SYNTAX: MAX N,V

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.
  • V = maximum value (integer or real) of the bar.

USE

  • The command MAX is used to define a maximum value to a bar or to a SPIN.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If number N is not the number of an object : SCROLL_BAR, TRACK_BAR, PROGRESS_BAR, SPIN.
  • If value V is not a correct expression.

EXAMPLE

rem create a SCROLL_BAR

scroll_bar 1

rem set its maximum value to 100

max 1,100

SEE ALSO

MIN

SCROLL_BAR

TRACK_BAR

PROGRESS_BAR

SPIN

POSITION

POSITION()