Difference between revisions of "MC-Basic:ISOPEN"
(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> ''<…') |
m (1 revision) |
(No difference)
|
Revision as of 16:09, 13 December 2010
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