COMMAND_TARGET_IS

COMMAND_TARGET_IS N

DESIGNATES THE SYSTEM OBJECT NUMBER N AS RECEIVER OF COMMANDS

  • Type: Command
  • Parameter: 1
  • Group: System Objects

ACTION

The command COMMAND_TARGET_IS N designates the system object number N which will receive the next commands. The system object must be an object receiver (FORM, CONTAINER, PANEL, TAB) and it becomes the "command target" system object.

By default, the "command target" system object is : FORM number 0.

SYNTAX: COMMAND_TARGET_IS N

  • 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.

USE

  • The command COMMAND_TARGET_IS is used to create system objects on an object receiver (FORM, CONTAINER, PANEL, TAB).

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 the system object number N does not exist.
  • If number N is not the number of a FORM, CONTAINER, PANEL, TAB.

EXAMPLE

rem create a FORM

form 1

rem designate this FORM as command target

command_target_is 1

rem create a BUTTON on this FORM

button 2

caption 2,"Button on Form1"

SEE ALSO

FORM

CONTAINER

PANEL

TAB

NUMBER_COMMAND_TARGET