Content-Type: text/plain X-MIME-Autoconverted: from 8bit to quoted-printable by platon.itacom.com.py id T AA27505 Joe, I think your question is not so OT, Visual Basic is very nice for making a user interface - we use it for control systems and remote data logging - despite the fact you sometimes have to use rather a lots of tricks in order to have it work correctly. Well, you cannot read the comm buffer immediately on a comm event, it doesn't work (why perhaps Bill Gates can explain you, although I have my doubts). The trick is starting a timer on the comm event or when the inbuffer count is greater than 0, and do the reading of the buffer contents when the timer fires. I've attached a small program (VB3 code) for communication with a Panasonic PBX system, there you can find a way to do it..... The sample program monitors InBufferCount, you can also start the timer in the On_Comm event as another way to have things work. Regards, Albert Smulders InSAD - Encarnaci—n, Paraguay insad@itacom.com.py -----Mensaje original----- De: The Plumber Para: PICLIST@MITVMA.MIT.EDU Fecha: Viernes 30 de Octubre de 1998 17:04 Asunto: VB serial >Sorry for being a bit off topic, > >I am trying to communicate to a Visual Basic application using a pic, at >first I thought it was my code (pic), but then when I tried to use a >terminal program on another computer it didn't accept the input either. >The cable should be fine, because I can communicate between two computers, >in dos using a terminal program. Can anyone help me with this, any >example code, I am trying to use the mscomm control to make my life simple >but I must be missing something simple with the On_comm() event. > >BTW, I can send easily with the mscomm control. > >Thanks, >Joe Hoffmann >E-Mail jhoffman@it.sait.ab.ca Attachment converted: wonderland:Central.ZIP (pZIP/pZIP) (0001BE8C)