>>>It should be SET PRINTER TO NAME and there's no reason to use macro substitution in this case.
>>
>>I think there is ;
>>It is one or the other.
>>
>>
>>
>>set printer to name &lcPrinter
>>
>>* or
>>
>>set printer to name (lcPrinter)
>>***Personally I always used this one.
>>
>>
>>
>>
>>
>>Doing just ;
>>
>>set printer to name lcPrinter
>>
>>results in 'Error accessing printer spooler'
>>at least with VFP6/sp5.
>>
>>
>>I did not try this with VFP9.
>
>There's no reason to use macro substitution in this case because Name Expresiion works much better.
>Using macro sunstitution in this case is not only unnecessary but plainly wrong because it'll cause an error in case there are spaces in the printer name.
I agree that using name expression works much better, but way you put it in your reply to Hilmar, it sounded (I understood at least) that it would work with or without it.