Colin,
What printer driver? Your code works fine for me. Win98SE, 64mb Canon Multipass printer driver
>The following program selects a printer and then gives the user the chance to select portrait / landscape. It is run immediately after loading up VFP6 in a 256mb Win98 pc. It works ok first time around.
>
>clear
>clear all
>set printer to name getprinter()
>set printer on prompt
>set printer off
>
>Then I run the same program a second time and I get a message 'Not enough memory for this operation'. No other program is running at the time.
>
>What is the cause?