Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSComm Control and Cash Drawer KickOut
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
MSComm Control and Cash Drawer KickOut
Divers
Thread ID:
00230938
Message ID:
00230938
Vues:
63
I have subclassed the MSComm control, and need to know if the following would be correct in order to send a character string to the drawer in order to pop it open:
lnComPort = 1 && actually derived from an app property set at login
with This.oleComPort  && THIS applies to the form the control is on
   .CommPort = lnComPort
   .InputLen = 0
   .PortOpen = .t.
   .Output = Chr(255)  && or some other arbitrary character string
   .DoVerb()
   .PortOpen = .f.
EndWith
The DoVerb was the only method I thought would send the Output string to the com port. There were some values that could be passed with DoVerb [0 - default, -1, etc.], but none of the definitions in the DoVerb help adequately explained what each really does as it would apply to this control.

I would test this myself, but I do not have access to a cash drawer and do not care to spend several hundred dollars for a 5 minute test.

TIA.
Mark McCasland
Midlothian, TX USA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform