Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access COM port on Win Xp
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00691747
Message ID:
00691773
Views:
19
Hi Bernard
The following is the code I use to do the job, but you must have set library to foxtools.fll first and I have not tried it in XP yet. Could you let me know how you got on:

mfPort = "COM2:"
mDialStr = "X"

opencomm = RegFn("OpenComm","CII","I")
writecomm = RegFn("WriteComm","ICI","I")
closecomm = RegFn("CloseComm","I","I")

MComPort = CallFn(opencomm,mfPort,100,100)

=CallFn(writecomm,mComPort,mDialStr,LEN(mDialStr))
WAIT ALLTRIM(mfPort)+" Fired" WINDOW NOWAIT
=CallFn(closecomm,MComPort)

I didn't know there were any other Fox developers in the area. Are you going to the conference in Sydney on the 5th September ?

Cheers
John
To move a mountain start with the smallest stone
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform