input (not supported in Axiell Collections)

Syntax

text = INPUT(number)

Arguments

text: text

number: integer

Meaning

Not supported by Axiell Collections and RunAdapl.exe. Reads a text of maximum number of characters from the keyboard, displays them on the screen in a box a the current cursor position, and returns them to the program following a Return. If more than number of characters are entered, additional characters will be ignored and you will hear an alarm. The following keys can be used during input: Delete, Backspace, Left, Right. Keyboard input is always in overwrite mode. As soon as a Return is given, the ADAPL program continues. INPUT(0) waits until Return is pressed.

Example 1

name = INPUT(20)

Result

The text (max 20 characters) that the user enters, is saved in the variable name.

Example 2

locate (4, 5)
display '*** Enter the user's login name ***'

locate (6, 5)
variable1 = input(100)

locate (8, 5)
display '*** Enter the user's password ****'

locate (12, 5)
variable2 = input(100)

Result

A dialog box is presented, first asking the user to enter the user's login name, after which it can actually be entered (max 100 characters) and will be stored in variable1. Then the password is requested, after which that can be entered as well.