Difference between revisions of "StdIn"

From Xojo Documentation

m
m (See Also)
Line 36: Line 36:
 
[[ConsoleApplication]], [[StandardInputStream]], [[StandardOutputStream]] classes; [[TargetDesktop]] constant; [[Input]], [[Print]], [[StdOut]], [[StdErr]] methods; [[Readable]] class interface.
 
[[ConsoleApplication]], [[StandardInputStream]], [[StandardOutputStream]] classes; [[TargetDesktop]] constant; [[Input]], [[Print]], [[StdOut]], [[StdErr]] methods; [[Readable]] class interface.
  
[[Category:Language_Console_Applications]]
+
[[Category:Console]]

Revision as of 18:57, 9 November 2018

Method

Retrieves the global reference to the standard input stream, used in ConsoleApplications.

Syntax

result=StdIn

Part Type Description
result StandardInputStream The standard input stream is typically the keyboard as used for the Terminal application.

It could be a file, serial control, socket or other such input device on some systems.

Example

Gets the input after the user presses return:

Dim s As String
s = StdIn.ReadLine

See Also

ConsoleApplication, StandardInputStream, StandardOutputStream classes; TargetDesktop constant; Input, Print, StdOut, StdErr methods; Readable class interface.