>>Actually it is 'set printer to sys(1037)'.
>
>
>This isn't correct. SYS(1037) does not return a value, therefore, trying to SET PRINTER TO the return value of SYS(1037) doesn't do anything. All you have to do is:
>
>
>=SYS(1037)
>
>
>This calls the print dialog and once the user selects a print, it changes the VFP Default Printer to the selected printer. However, what it doesn't do is return a value .. therefore .. you don't know if the user pressed the cancel button instead of picking a printer.
>
>Cathy
Cathy,
The application wizard in VFP 7 sp1 generates the 'set printer to sys(1037)' as part of the standard menu system. I am using it in the same way.
I am not currently using 'sys(1037)' in a program, form, etc.