I have a VFP9 program which is long running and while it runs I log messages to the screen using "?" output. I also wanted to keep a record of the messages so I used
in order to output everything to a file. Been running this way for years.
When looking through this log file I often noticed that sometimes it would record a line just fine and sometimes it would start "wrapping" all lines over a certain, very small, length.
Sometimes in the middle of a series of messages it would start wrapping and continue that way to the end.
Here's an example of the same message type one day fine and another day wrapped.
You can see that this is not even 80 characters, which I would have expected an old time Foxpro "default" width to be set at, but looks to be 50.
I have searched through here (and any other Google responses) and I cannot find any way to set the character width of the "default" printer and certainly not when using SET PRINTER TO filename.
Anyone have any ideas what a solution might be?
Code:
SET PRINTER TO LOGFILE.LOG ADDITIVE
SET PRINTER ON
When looking through this log file I often noticed that sometimes it would record a line just fine and sometimes it would start "wrapping" all lines over a certain, very small, length.
Sometimes in the middle of a series of messages it would start wrapping and continue that way to the end.
Here's an example of the same message type one day fine and another day wrapped.
Code:
AAA AAAA Order #: 2770730386 UPS Tracking #: 1Z0V36E90341443786 AAA Order #: 590114 COULD NOT BE UPDATED! Shipping notification email has already been sent for this receipt.
Code:
AAA AAAA Order #: 2799032209 UPS Tracking #:
1Z19EY030340824261 AAA Order #: 592945 COULD NOT
BE UPDATED! Shipping notification email has
already been sent for this receipt.
You can see that this is not even 80 characters, which I would have expected an old time Foxpro "default" width to be set at, but looks to be 50.
I have searched through here (and any other Google responses) and I cannot find any way to set the character width of the "default" printer and certainly not when using SET PRINTER TO filename.
Anyone have any ideas what a solution might be?