Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSComm Control and Cash Drawer KickOut
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MSComm Control and Cash Drawer KickOut
Miscellaneous
Thread ID:
00230938
Message ID:
00230938
Views:
62
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
Next
Reply
Map
View

Click here to load this message in the networking platform