THISFORM.MyBuffer = THISFORM.MyBuffer + THIS.input THISFORM.ProcessData()In ProcessData():
IF yourendoflinechar$THISFORM.MyBuffer * Got a complete line - Do something * Save it, send it, turn on a light, etc. THISFORM.MyBuffer = "" ENDIFand you are done. If there is a chance of multiple scans in the buffer, you might test for multiple End of Line chars and just extract the most recent, leaving the rest intact or processing them all, or ? It's up to you.