Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to read string from serial port for bar code app
Message
From
02/05/2002 15:30:30
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
02/05/2002 09:07:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00651375
Message ID:
00652079
Views:
24
>If your are willing to try MSCOMM32.OCX and the VFPCOM utility ...

PMFJI -

yep, the MSCOMM32.OCX is a good way to go, but you don't really
need the VFPCOM utility to bind events, because the MSCOMM32
control already has an event that fires every time it receives
a character. that event is the "OnComm" event. all you need
to do is to react to that event on every received character
and buffer (them) somewhere, and when your received character
is CR and/or LF, send your entire buffer to the textbox, and
clear the buffer. no need for any looping to check the MSCOMM32
control status either, since the event fires asynchronously.
patrick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform