Difference between revisions of "MC-Basic:ISOPEN"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ?ISOPEN(''<DeviceHandle>'') |AVAILABILITY= from 0.4.0.22 |DESCRIPTION= Returns the status of port , defined by (''<DeviceHandle>'') .<br> ''<…')
 
 
(7 intermediate revisions by 3 users not shown)
Line 15: Line 15:
 
|TYPE=
 
|TYPE=
 
''<DeviceHandle>'': Long<br>
 
''<DeviceHandle>'': Long<br>
''<return value>'': Long
+
<''return value''>: Long
  
 
|RANGE=
 
|RANGE=
 
''<DeviceHandle>'': 1 to 255<br>
 
''<DeviceHandle>'': 1 to 255<br>
''<return value>'':     0 – closed
+
<''return value''>:     0 – closed
  
 
1- open
 
1- open
Line 33: Line 33:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only
+
Read only
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 55: Line 55:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:CLOSE|CLOSE]]
+
* [[MC-Basic:CLOSE|CLOSE]]
* [[Axystems:MC-Basic:INPUT$|INPUT$]]
+
* [[MC-Basic:INPUT$|INPUT$]]
* [[Axystems:MC-Basic:OPEN|OPEN]]
+
* [[MC-Basic:OPEN|OPEN]]
* [[Axystems:MC-Basic:PRINT HASH|PRINT HASH]]
+
* [[MC-Basic:PRINT HASH|PRINT HASH]]
  
  
 
}}
 
}}

Latest revision as of 08:39, 22 May 2014

Returns the status of port , defined by (<DeviceHandle>) .
<DeviceHandle>: A handle to a specified port.

Syntax

?ISOPEN(<DeviceHandle>)

Availability

from 0.4.0.22

Type

<DeviceHandle>: Long
<return value>: Long

Range

<DeviceHandle>: 1 to 255
<return value>:     0 – closed

1- open

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

-->Open COM2 BaudRate=9600 Parity=0 DataBits=8 StopBit=1  As #2

-->?isOpen(2)

1

-->close #2

-->?isOpen(2)

0

-->Open "File1.PRG" Mode="w" as #1

-->?isOpen(1)

1

See Also