Difference between revisions of "MC-Basic:INPUT$"

From SoftMC-Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
''<DeviceHandle>'': a handle to the specified serial port or file
 
''<DeviceHandle>'': a handle to the specified serial port or file
  
Length is optional when reading from file – if not specified reads till end of lineor  511 Bytes, whatever comes first.
+
Length is optional when reading from file – if not specified reads till end of line or 511 Bytes, whatever comes first.
  
 
|TYPE=
 
|TYPE=
Line 47: Line 47:
 
* [[MC-Basic:LOC|LOC]]
 
* [[MC-Basic:LOC|LOC]]
 
* [[MC-Basic:OPEN|OPEN]]
 
* [[MC-Basic:OPEN|OPEN]]
* [[Axystems:MC-Basic:PRINT HASH|PRINT HASH]]
+
* [[MC-Basic:PRINT HASH|PRINT HASH]]
  
[[Category:Axystems:MC-Basic:File Management|INPUT$]]
+
[[Category:MC-Basic:File Management|INPUT$]]
 
}}
 
}}

Latest revision as of 09:27, 11 February 2019

Returns a string of characters from the specified port or file The return string length is limited by <length> parameter.
<length>: number of Bytes to return
<DeviceHandle>: a handle to the specified serial port or file

Length is optional when reading from file – if not specified reads till end of line or 511 Bytes, whatever comes first.

Syntax

Input$ ({<length>}, #<DeviceHandle>)

Availability

All versions

Type

<length>:Long
<DeviceHandle>: Long

Range

<length>: N/A
<DeviceHandle>: 1 to 255

Default

Length default  is 511 Bytes

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

Str_Var=Input$(50,#1)

Test=Input$(1, #1)

X=Input$(LOC(1), #1)

See Also