Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serial port
Message
From
18/09/2002 14:54:14
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
17/09/2002 14:14:24
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00701091
Message ID:
00701975
Views:
13
in addition to what Viv wrote --

you send output to the control like this. (here i am
sending a character and waiting before the next, due to
requirements of the device i am controlling).
THISFORM.ole_MS_COMM.Output = CHR(148)
WAIT TIMEOUT 0.1 ''
THISFORM.ole_MS_COMM.Output = CHR(0)
and here is typical code in the OnComm event Viv mentioned.
LOCAL Received_Char
Received_Char = ' '

Received_Char = THISFORM.ole_MS_COMM.Input
* =MESSAGEBOX ( STR(ASC(Received_Char)) , 0 , 'Got a char' )

THISFORM.ole_MS_COMM.Output = CHR(0)
in this case, i need to reply with a null character in reponse
to every character i received.
patrick
Previous
Reply
Map
View

Click here to load this message in the networking platform