What do you mean by "send"?
I have a scanner attached to the comm port. Can I send data to it?
>>it would be too easy.
>>MSCOMMControlInstance.PortOpen keeps true value even if you power the device with a comm port down.
>>
>>
>>>>>>Does anyone know if it's possible to regularly check a comm port whether it it is still open? I tried to open a port in the form, then disconnect the device that has a comm port but the form still thinks that the port is open.
>>>>>>Thanks for any idea.
>>>>>
>>>>>How you open and close COM?
>>>>I am using mscomm activex control.
>>>
>>>IF MSCOMMControlInstance.PortOpen
>>> do whatever you want to do when the port is poened
>>>ENDIF
>>>
>>>***
>>>MSCOMMControlInstance.PortOpen = .f.
>>>
>
>This is true. Just try to send some test command to device and see if you'll get the answer. If you don't receive any answer then close the COM.