View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Christof Kluß Christof Kluß is offline
external usenet poster
 
Posts: 1
Default CommRead data with unknown length

Hi

there are many good tutorial for communication with the serial port via
VBA like http://www.thescarms.com/vbasic/commio.aspx or
http://dev.emcelettronica.com/serial...tion-excel-vba
All of them seems to use something like

CommRead(intPortID, strData, lngSize)

But my device sends data with unknown length. Is there a way to
implement an wrapper for CommRead that bypass the lngsize, so that i can
read the whole string sended?

thx
Christof