Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening POS electronic cashdrawer.
Message
De
19/06/2003 18:34:20
 
 
À
19/06/2003 17:55:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00801458
Message ID:
00801990
Vues:
21
>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform