WriteComm on file
Posted: Fri Aug 30, 2019 4:32 pm
Can I write to Com1 as a file ?
Maurizio
Maurizio
www.FiveTechSoft.com
https://fivetechsoft.com/forums/
Code: Select all
FUNCTION MAIN()
LOCAL nHandle
LOCAL cBuf
LOCAL nLen
nHandle := FOPEN( "COM1" , 1 )
? nHandle
cBuf := "ATDT161"
nLen := LEN( cBuf )
? FWRITE( nHandle , @cBuf , nLen )
FCLOSE( nHandle )
? nHandle
RETURN NIL