>I need to write directly to a Com port... what have you done/used that was successful?
Here's what I do
Function Write2ComPort
Lparameters tcComPort, tcString
* PASS the COMPORT and the string to send to it
* eg "COM1:","ABCDEF"
#Define ForReading 1
#Define ForWriting 2
oWshFile = CREATEOBJECT("Scripting.FileSystemObject")
If TYPE("oWshFile") #"O"
Return .F.
Endif
oCom = oWshFile.OpenTextFile(tcComPort, ForWriting, .T.)
oCom.Write(tcString)
oCom.Close
Release oCom
Release oWshFile
Return
HTH