Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Help, Urgent
Message
From
05/08/2000 09:12:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Need Help, Urgent
Miscellaneous
Thread ID:
00401515
Message ID:
00401515
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform