advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
INPUT$ Function Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 INPUT$(n[,[#]filenumber%])
 
 Usage Notes
   ■ Any reference to INPUT$ where #filenumber% represents KBYD: or CONS:
     is not allowed with forms and causes Visual Basic to generate the error
     message, "Invalid when forms are showing."
 
   ■ If the file is opened for random access, the argument n must be either:
     • Less than or equal to the record length set by the LEN clause in the
       OPEN statement
     • Less than or equal to 128 if the record length is not set
     See: OPEN Statement (File I/O)
 
   ■ If the given file is opened for binary or sequential access, n must be
     less than or equal to 32,767.
 
   ■ If filenumber% is not specified, the characters are read from the
     standard input device. Note: If input has not been redirected, the
     keyboard is the standard input device.
 
   ■ You can use the MS-DOS redirection symbols (<, >, or >>) or the pipe
     symbol (|) to redefine the standard input or standard output for an
     executable file created with Visual Basic.
 
   ■ Unlike the INPUT # statement, INPUT$ returns all characters it reads.
     Use INPUT # to read data elements and assign them to variables.
     See: INPUT # Statement