POSITION

POSITION N,V

SET THE POSITION OF CURSOR OF THE SYSTEM OBJECT NUMBER N

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

ACTION

The command POSITION N,V set to V the position of the cursor of the system object designated by its number N.

The system object N is a bar : SCROLL_BAR, TRACK_BAR, PROGRESS_BAR or a SPIN.

The position of the cursor must be inside the two limits MIN and MAX of the system object.

SYNTAX: POSITION 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 = position of the cursor (integer or real).

USE

  • The command POSITION is used to set the cursor of a bar or the value or 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 system object number N is not of the type : 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 cursor to 10

position 1,10

SEE ALSO

MIN

MAX

POSITION()

SCROLL_BAR

TRACK_BAR

PROGRESS_BAR