Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MSCOMM with USB to serial device
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01320080
Message ID:
01320143
Views:
24
Without seeing your code it might be tough...

We use code like this:

local lcInput

with thisform.comm_Control

if .PortOpen = .t.
* is there something to view?
if .inBufferCount > 0
lcInput = .Input
else
* get out nothing is there
return
endif

else && Port is not open, try to open it up.

* open port ( I use the INIT of the control to do this )

endif

endwith

* now transfer to a textbox
thisform.txtCommunication_Port_Data.Value = lcInput
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform