Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not enough memory for this operation
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00481454
Message ID:
00481516
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform