Leemi
Tue Jan 11 08:27:05 CST 2005
Hi Daniel:
Along with the links Rick recommended, you might want to also check out the
examples of serial port communication available on Universalthread.com. Go
to www.universalthread.com, click on the Download icon, and choose Visual
FoxPro as the product. In the Summary text box of the query page, search
for "serial."
BTW, one of the example specifically deals with writing ocde to work with a
weighing scale.
I hope this helps.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003
>Daniel,
>You'll just need to use MSCOMM32. Some sample code for accessing serial
data in VFP using >MSCOMM32 can be found in the following:
>
http://support.microsoft.com/kb/q140525/- HOWTO: Receive from the Serial
Port by Using >MScomm32.ocx.
>Also useful may be
>
http://support.microsoft.com/kb/q139526/ - HOWTO: Send to the Serial Port
by Using >Mscomm32.ocx.
>And of course,
>
http://support.microsoft.com/kb/q154741/ - HOWTO: Transmit and Receive
Binary Data using >MSCOMM32.
>If MSCOMM32 doesn't provide you with enough control, you'll need to find
another 3rd party >control to handle the serial communication. Remember
that in the Windows environment, it >controls the I/O ports - you can't do
it directly - especially in WinNT, Win2000, XP and Win2003.
>Rick
>"Daniel" <Daniel@discussions.microsoft.com> wrote in message
news:A270E6DA-D453-4800->871E-6B1C8FBC7A3D@microsoft.com...
> Hi there,
>
> I need to somehow link a PC, via a serial port, to a weighting scale.
> I'm using Visual FoxPro 7 and I really don't know how to do that (I have
tried
> some FOPEN (COM1) but it didn't work)
>
> Any ideas? Please...
>
> Daniel
>