Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I recognise if print has been cancelled
Message
From
22/06/2004 08:55:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00915952
Message ID:
00916007
Views:
8
>Hi
>
>I use the command set printer on prompt - if I cancel at the point where the list of printers comes up how can I recognise this in VFP
>
>Thanks
>
>Colin

You can get the printer name first with GetPrinter(). If the return value isblank(), the user has cancelled.

Then, if not isblank(), you can go ahead and print to the printer the user selected.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform