> > >>
> >
> >
> Ooops, sorry about that. This is due the the Comm control expecting ANSI
> characters and Character 0 is a Null character which it dosen't like. You
> can fix this by setting Comm1.InputMode = comInputModeBinary. This means
> the Input method of the Comm control returns a byte array rather than a
> string so your routines will have to be modified a tiny bit.
>
> The VB Example shows how to do this using a Variant, which I don't usualy
> like using but it does make the code very simple.
>
> Dim Buffer as Variant
> Dim bytArray() as Byte
>
>
> ' Get the contents of the Comm buffer
>
> Buffer = MSComm1.Input
>
> 'Convert to byte array
>
> bytArray = Buffer
>
> ' Send the data to your display routine
>
> For intCount = LBound(bytArray) To Ubound(bytArray)
> DisplayChar(bytArray(intCount))
> Next intCount
>
>
> Hope this works, I don't have two PC's available right noe to test this.
>
> Cheers
>
> Mike
>
> --
>
http://www.piclist.com hint: The PICList is archived three different
> ways. See
http://www.piclist.com/#archives for details.