Sorry, I didn't notice it was for DOS version. I think SET('printer') doesn't have 3 as a second parameter in DOS.
Try the other code I posted. I don't remember if FPD has aprinters() command and I don't have DOS version here to check.
>in foxpro 2.6 your command is giving error
>
>error : invalid subscript reference.
>
>
>set printer to name (set('printer',3))
>
>
>
If it's not broken, fix it until it is.
My Blog