Hi Alan,
The MSComm control is a good way to do it if the serial protocol for the scale is well-documented. MSComm can either run event-driven or via polling the device so there is some flexibility. The downside to MSComm is that it assumes some basic familiarity with RS232 communications and it's documentation is lacking. The upside is that you already have it sitting on your computer.
Lookup "MSComm control" at MSDN or in the MSDN Library for more information.
>Anybody have a good tool to use with VFP for catching a data string coming in from a com port?
>
>I have a scale that will send me via RS232 the weight of a package. I want to grab the weight compare it to what the weight should be and then pass or stop the package on the screen.
>
>Any help would be appreciated.
>
>Thanks in advance
>
>Alan
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05