Discussion Locked

output data using a port in VB

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I used to send data by computer ports using Qbasic.

OUT (port), (data)to write, and B=INP(port) to read from the port.
could somebody tell me how can I do this using Visual Basic?

1 reply

by rolie

You need to learn another control from VB which is the MSComm control included in the toolbox components. You can still use the same old command in QBASIC and BASIC which is the OUT() and INP() function, but because your platform now will be on windows this ports can be easily mess up if careful programming is not implemented. I suggest you study th MsComm control. This would automatically give what you port controls.

This discussion is closed to new replies.