Re: detecting characters on RS232-Interface
From: Dick Grier (dick_grierNOSPAM_at_msn.com)
Date: 01/26/05
- Next message: Rob Nicholson: "Re: Does VB6 localise boolean variables?"
- Previous message: btpanek09_at_yahoo.com: "Re: Changing TCP/IP Settings"
- Maybe in reply to: Jim Mack: "Re: detecting characters on RS232-Interface"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 Jan 2005 09:38:45 -0700
Hi,
>>
Hmmm, good question. I ecall that InputMode is used whenever you want
to specify text or bnary, but I wonder how much better it would be in
your
case to specify Text. Maybe data outside the ANSI char set will be
ignored.
Unfortunately, my data stream (data & garbage) was text, so I left it at
0.
I would like to know ***'s opinion on this.
<<
You want to specify InputMode = comInputModeBinary (then you must use an
array of type Byte to buffer input data), if you MIGHT use your program on a
DCBS enabled OS, such as Japanese or Chinese, for example. Searching for
character matches then would require your own code (a simple loop) -- or you
might use a routine from Microdexterity's Stamina library
(www.microdexterity.com). Stamina will be faster than your own looping
code. However, in most cases the performance here will not really be an
issue.
***
-- 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.
- Next message: Rob Nicholson: "Re: Does VB6 localise boolean variables?"
- Previous message: btpanek09_at_yahoo.com: "Re: Changing TCP/IP Settings"
- Maybe in reply to: Jim Mack: "Re: detecting characters on RS232-Interface"
- Messages sorted by: [ date ] [ thread ]