VB6Runtime / Library / Statements / input

VB6 Library Reference

VB6 Input statement syntax: - Input #filenumber, varlist Reads data from an open sequential file and assigns the data to variables. The Input # statement syntax has these parts:

Part Description
filenumber Required. Any valid file number.
varlist Required. Comma-delimited list of variables that are assigned values read from the file. Variables can't be arrays or object variables. However, variables that describe an element of an array or user-defined type may be used.

Remarks

Examples

Input #1, name, age
Input #fileNum, x, y, z
Input #1, firstName, lastName, address

Reference

← Back to Statements | View all functions