>>How about using GETPRINTER() instead? It seems that sys(1037) "always returns the empty string", wherease GETPRINTER() returns the name of the printer selected - or the empty string if the user cancels.
>
>... followed by SET PRINTER TO NAME xxx.
>
>Hilmar.
Hilmar,
Thanks for suggesting.
I forgot GETPRINTER() as fast as I see (years ago).
I simple would like to use a SYS(1037) because this is more or less what user knew from other programms.
GETPRINTER() is unable to change settings and the user think I am re -inventing the wheel? ::)
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]