Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!cleveland.Freenet.Edu!an207 From: an207@cleveland.Freenet.Edu (David DeSimone) Newsgroups: comp.sys.cbm Subject: Re: inputting from the modem port in commdore basic Message-ID: <9101062203.AA03141@cwns16.INS.CWRU.Edu> Date: 6 Jan 91 22:03:19 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: an207@cleveland.Freenet.Edu Lines: 23 In a previous article, treesh@vangogh.helios.nd.edu writes: >Also, looking at your logic of GETTING a$ from the modem port, your not making >a check for a null, instead your popping right into your a1$=a1$+a$. If >a$ was a null, and then it was added, would that change a1$? Probabaly not >right? Or would it acutally insert a ton of chr$(0)'s into a1$?? When GET gets a CHR$(0), it changes it to "" (a null string) I believe. So you could check for a null if you wish, but only if you need to speed up the code some. Couldn't hurt. The biggest danger is overflowing a1$ with more than 255 characters, which I didn't check for. >Hopefully this will do the job for me, I have been up all night trying >different ML approaches to this problem, suffering deeper and deeper brain >dammage!!! hahaha Who needs ML? Just use compiled Basic. :) -- begin 644 .signature G5&AI