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 Cash Drawer Control

Status
Not open for further replies.

lykeat

Programmer
Sep 1, 2003
22
MY
Hi there, now i have to connect cash drawer with a pc using serial port. And the technical support give me a code for control the cash drawer, but it is based on Qbasic programming and dos mode. Now i need to convert it to vb. Below is the code

Qbasic
open "com1:9600,n,8,1" for output as #1
print #1,chr$(13)

Or Dos
mode com1:9600,n,8,1
dir > com1

Can somebody help me to convert it because i'm not sure about the code.
Thank you

Regards,
Henry
 
Try the forum search at the top of the page - this has been covered several times!

You should also read faq222-2244, especially paragraphs 8, 13, 14, 15 and 16 to find how to get the best from this forum

You can also look at MSComm Control in VBHelp

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top