Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need Help, Urgent
Message
De
05/08/2000 09:12:11
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Need Help, Urgent
Divers
Thread ID:
00401515
Message ID:
00401515
Vues:
44
I have a form called to print invoice, before the invoice sent to printer, I increase the invoice number and then print ..(in Multi user environment), my problem is when the invoice prompt the printer (which network printer to be used to print) ask user to select the printer, If the user click on the ok then invoice will print and number will be updated properly, Everything is OK , But the problem is user click cancel button then invoice will be cancelled to print but the invoice number already been increased. How to detect user to click on cancel and never print the invoice ? My Coding :

select docsetup
do whil !rlock()
endd
stor increase(invoicenumber) to tt_invno
repl tt_invno with invoicenumber
unlock

do report form invoice to printer prompt noconsole




Sorry for my english... Any has good suggestion or solution to solve this . If yes, Coding will be appreciated
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform