>>>>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.