9.0
180
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.
See Also: Line Input
, Print, Write.
Example
Sub Main
Open
"XXX" For Input As #1
Input #1,A,B,C$
Debug
.Print A;B;C$
Close
#1
End
Sub
Input$ Function
Syntax
Input[$](N, StreamNum)
Group
File
Description
Return N chars from StreamNum.
Parameter Description
N Read this many chars. If fewer than that many chars are left before the end of file
then a run-time error occurs.
StreamNum Streams 1 through 255 are private to each macro. Streams 256 through 511 are
shared by all macros.
Example
Sub Main
Open
"XXX" For Input As #1
L = LOF
(1)
T$ = Input$(L,1)
Close
#1
Debug
.Print T$;










