Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bar Code Scanners
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00018915
Message ID:
00019344
Vues:
51
>>http://www.microsoft.com/industry/retail_dist/retail_distdev.htm#opos
>Thanks. I looked it over and boy does it look like it gets real deep real
>fast... (s)

It's not as bad as those 300 pages look. :-) Once it's installed, this is all you need to open a cash drawer...
* Millisecond time resolution
#DEFINE TIME_HALF 500
#DEFINE TIME_10 10000
#DEFINE TIME_5 5000
#DEFINE BEEP_FREQ 440

loDrawer = CREATEOBJECT('OPOS.CashDrawer')
loDrawer.Open('InsertNameOfDrawerHere')
loDrawer.Claim(TIME_HALF)  && For exclusive use -- millisecond parameter
loDrawer.OpenDrawer()
loDrawer.WaitForDrawerClose(TIME_10, BEEP_FREQ, TIME_HALF, TIME_5)
* Start beeping in 10 seconds at 440Hz for half a second with 5 seconds between beeps
loDrawer.Close()     && We're done
All of it is pretty much this simple, once you understand the basic mechanism...
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform