MIN

MIN N,V

SET THE MINIMUM VALUE V OF THE SYSTEM OBJECT NUMBER N

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

ACTION

The command MIN N,V set the minimum 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: MIN 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 = minimum value (integer or real) of the bar.

USE

  • The command MIN is used to set a minimum 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 minimum value to 10

min 1,10

SEE ALSO

MAX

SCROLL_BAR

TRACK_BAR

PROGRESS_BAR

POSITION

POSITION()