Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?B?R3VscMKu?= Newsgroups: it.comp.lang.visual-basic Subject: Re: MSComm e USB Date: Thu, 1 Dec 2016 16:28:18 +0100 Organization: Aioe.org NNTP Server Lines: 21 Message-ID: References: <5emu0c5r4q498dco9fdql8vaverfc86rn2@4ax.com> NNTP-Posting-Host: iLWHwHujAmG0qy7M95CwiA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com it.comp.lang.visual-basic:18930 Mi sembra comunque che per quanto riguarda l'attesa, questa parte di codice: dato$ = "" tsyn = Timer + 10 While dato$ = "" And Timer < tsyn ' Controlla la presenza di dati. If COM1.InBufferCount Then svolga più o meno la stessa funzione del loop da te proposto...beh, quasi. :) -- Gulp® -- "Partimque figuras retulit antiquas, partim nova monstra creavit." (La Metamorfosi - Ovidio)