Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

serial port RS232:any difference between VFP6 and higher?

Status
Not open for further replies.

Fabmoda

Programmer
Jun 13, 2002
14
IT
I've write a program that reads some information from a card-reader connected to rs232 serial port using MSCOMM32.OCX . It works correctly running from VFP6 but if I re-build the same application using VFP7 something strange happen during the runtime: the strings of byte read from serial port are truncated and shorter than the ones readed with the VFP6-executable.

What does it means? Someting mistake in my configuration of VFP7 or difference between VFP6 and VFP7 in using MSCOMM32.OCX?

following I describe my connection with the serial port

Testcom=createobject("MSCOMMLib.MSComm")
Testcom.CommPort = 2
Testcom.Settings = "9600,N,8,1"
Testcom.PortOpen = .T.

-----------
Thanks a lot
Fabiano
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top