It's better to use name expression
SET PRINTER TO NAME (lcWinprinter)
The SYS(6) returns setting for SET PRINTER TO. The SET("PRINTER",3) returns setting for SET PRINTER TO NAME.
>when I set printer to NAME &lcwinPrinter,
>why I use SYS(6) cannot display the printer name ?
>
>But when I SET PRINTER TO ABC.TXT, the SYS(6) can display the "ABC.TXT"
>
--sb--