Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening POS electronic cashdrawer.
Message
From
19/06/2003 18:34:20
 
 
To
19/06/2003 17:55:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00801458
Message ID:
00801990
Views:
19
>>>>Hello all.
>>>>I have a strange question.
>>>>
>>>>What is the foxpro equivalent of CRTL-G?
>>>>
>>>>I'm working the cash drawer model CR3002, manufactured by Logic Control.
>>>>
>>>>In the document for DOS prompt, sending it CRTL-G, which displays as "^G", supposed to open the cashdrawer.
>>>>
>>>>Thanks.
>>>
>>>It's ASCII code 7, or chr(7) from FoxPro. You might try two if it still doesn't work. ex: ? chr(7)+chr(7)
>>
>>You're doubling up the wrong thing here. You might be better off with a ?? CHR(7). The single '?' does a CR+LF then the Bell.
>
>I've seen some cash drawers that would not open with one Bell character, but two would work. And some won't work with Bell at all, they require a pulse/duration control sequence.
>
>Wouldn't the ? or ?? only affect the receipt printer, if one was connected between the computer and cash drawer?

Regardless of the codes required, the single '?' still sends a CR+LF to the device. That may be required, it may not. It's entirely device dependant.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform