>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 'Nor enough memory for this operation'
>
>What is the cause?
>
>
>Colin Northway
Why all the superfluous commands. I have cmdGetPrinter command button class with the following in the CLICK
local lcPrinterName
lcPrinterName = ""
lcPrinterName = GetPrinter()
if !empty(lcPrinterName)
set printer to name (lcPrinterName)
else
set printer to default
endif
In the DESTROY, I have:
set printer to default
I also have this as bar under the FILE pad of my app menu.
Mark McCasland
Midlothian, TX USA