That changed in vfp9? Because it works in vfp8.
Thanks for the help.
Beth
Update: Changed the code and ran it. did not work. Going into debug again. :(
>It should be
>
>SET PRINTER TO NAME (gaPrinters(lnPos,1))
>
>
>>okay, I tried that in the debugger with my code. It shows the bad printdriver, which is the one I set as default. But I have code above the place that I stop at, that is SUPPOSE to change the printdriver to the good printdriver. The line is:
>>
>>SET PRINTER TO NAME gaPrinters(lnPos,1)
>>
>>gaPrinters is a list of all the printers installed on that computer. My code has gone through the list and found the first one that ends with PS in the name.
>>
>>Any Ideas?
>>
>>Thanks for the help.
>>Beth
>>
>>
>>>The current VFP printer is returned by
>>>
>>>? SET("PRINTER", 3)
>>>