FutureBasic Logo

<<    Index    >> FutureBasic 5

inkey$ <ioChannel>   function



Syntax:
stringVar$ = inkey$(deviceID)

Description:
This function reads a single character from an open serial port or an open file, and returns it as a 1-character string. deviceID should equal either _modemPort or _printerPort (see the open "C" statement), or should be the fileID number of an open file (see the open statement).
The function returns an empty (zero-length) string in the following situations:
Note:
This function is similar to the read# deviceID, stringVar$;1 statement. However, the read# statement generates an error if you attempt to read past the end of a file.

See Also:
inkey$; read#; open; open "C"