Re: String Variable containing "R" has zero length??? mscomm1.input

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Dick Grier (dick_grierNOSPAM_at_msn.com)
Date: 11/02/04


Date: Tue, 2 Nov 2004 11:48:35 -0700

Try this,

Do
    c = c & MSComm1.Input
    If Instr(Ucase(c), "READY") Then
        Exit Do
    Else
        DoEvents
    End If
Loop
debug.print c

***

-- 
Richard Grier  (Microsoft Visual Basic MVP)
See www.hardandsoftware.net for contact information.
Author of Visual Basic Programmer's Guide to Serial Communications, 4th 
Edition ISBN 1-890422-28-2  (391 pages) published July 2004.  See 
www.mabry.com/vbpgser4 to order.

Quantcast