INPUT_SOURCE_IS

INPUT_SOURCE_IS N

DESIGNATES THE SYSTEM OBJECT NUMBER N AS DATA SOURCE

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

ACTION

The command INPUT_SOURCE_IS N designates the system object number N which will be used as SOURCE of data for an INPUT command.

The system object must be of type : EDIT, COMBO, FORM.

This system object becomes the "data source" system object.

By default, the "data source" system object is the keyboard and number 0 is used to designate the keyboard (normally, the command INPUT reads the keyboard).

SYNTAX: INPUT_SOURCE_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 INPUT_SOURCE_IS is used to read through an INPUT command a string belonging to a system object .

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 : EDIT, COMBO, FORM.

EXAMPLE

dim a$

rem create a LIST

list 1

rem fill the LIST with a file

file_load 1,"data.txt"

rem designate this LIST as source of data

input_source_is 1

rem read and print the first and the second line of the LIST

input a$:print "first line ="+a$

input a$:print "second line ="+a$

SEE ALSO

INPUT

EDIT

COMBO

FORM

NUMBER_INPUT_SOURCE