Input Instruction

Syntax

Input [#]StreamNum, var[, ...]

Group

File

Description

Get input from StreamNum and assign it to vars. Input values are comma delimited. Leading and trailing spaces are ignored. If the first char (following the leading spaces) is a quote (") then the string is terminated by an ending quote. Special values #NULL#, #FALSE#, #TRUE#, #date# and #ERROR number# are converted to their appropriate value and data type.

Sandbox

Sandbox mode blocks this instruction.

Example


Sub Main
    Open "XXX" For Input As #1
    Input #1, A, B, C$
    Debug.Print A; B; C$
    Close #1
End Sub

See also

Line Input, Print, Write