I am actually a domino developer (Lotus Notes), but I have had to incorporate the MSCOMM control into a domino application to send SMS messages direct from the application to certain network providers.

The code dialss and sends the sms, however, I have had to use the Sleep command to pause my code while I wait for the modem to connect.

Ideally, I need to read each line of the input stream so I know exactly when to send my information through the port, this is also required as occasionally, the service I dial into alters slightly and I need to recognise this to force a drop connection and redial.

I can read the mscomm1.input, but when I view it I have the whole of the Output/Prompt sequence from the network provider in the buffer, where ideally I need to act on the input buffer line by line

Can anyone give me a hint - I've been through MSDN and not a lot of it makes much sense to me - I basically need to read the ibout from the modem, clear it, act on it, then read the next line

cheers