herrera Posted June 7, 2006 at 03:36 PM Report Share #31625 Posted June 7, 2006 at 03:36 PM boas... tenhu um problemazito com o controlo do Visual Basic 6 MSComm. o problema prende-se com o facto de que, quando leio o buffer da porta série ele ainda nao esta completamente cheio... gostaria de saber como poderia fazer esperar a execucao do codigo ate o buffer atingir um determinado comprimento de caracteres para depois poder fazer o input do buffer com tudo direitinho..... cumps obg pela ajudinha.... ? Link to comment Share on other sites More sharing options...
Tiago Salgado Posted June 7, 2006 at 03:42 PM Report Share #31628 Posted June 7, 2006 at 03:42 PM Ve se isto te ajuda: http://www.macoratti.net/vb_comm.htm Link to comment Share on other sites More sharing options...
freesumo Posted June 8, 2006 at 09:42 AM Report Share #31748 Posted June 8, 2006 at 09:42 AM Eu costumo fazer o seguinte: 'Polled mode Do Until MSComm1.InBufferCount >= 1 'do events ate ter 1 valor no buffer DoEvents Loop Também podes usar OnComm (event-driven mode) vê, http://msdn.microsoft.com/library/en-us/comm98/html/vbobjoncomm_commx.asp?frame=true Cyas 😉 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now