Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Default printer for deployment
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00494956
Message ID:
00495278
Views:
13
>Unrelated observation, but you don't need to use macro here. Just use name expression, e.g.
>if !empty(m.lcPrinter) && User not Cancel the dialog
  set printer to name (m.lcPrinter)
endif
>I just have a habit to avoid unnecessary macros if possible. Check David's Filer FAQ here in FAQ section regarding Macro/Evaluate/Name expression usage.

Even easier (without name expression) is:
SET PRINTER TO NAME GETPRINTER()
--Brad
Previous
Reply
Map
View

Click here to load this message in the networking platform