BUG: Progrm CRASH - Export to Printer from stock tbl

Make comments, ask questions, or just complain about the software on this site. Or comment on any educational software.
Please note that by clicking on links that may appear in these posts that you may be leaving the Dale Harris Educational Software website and that the content of those sites is the sole resposibility of the authors of those sites.

Moderators: daleadmin, Dale Harris, Alan, Andrew

Post Reply
User avatar
brucef2112
Forum Regular
Posts: 335
Joined: Mon Mar 06, 2006 11:19 pm
Location: Broward County, Floriduhh
Contact:

BUG: Progrm CRASH - Export to Printer from stock tbl

Post by brucef2112 » Fri Nov 29, 2013 2:00 pm

Dale,
This bug crashes the program when exporting records from the stock table to a printer where the output len. is wider than the character width in the printer setup. ie a printer set to 40 char. wide, and the data fields chosen for export exceed this length.
It gives a warning, but the only choice given is to "hit any key", and it then crashes the program and gives the following message.
Return without GOSUB in line 56 of module STOCK3 at address 213:4351
Hit any key to return to system.


How I did it. Follow along if you'd like to try:
Using Version: 7.1g, with stock table, inventory tracking, receipt printer set to 40 char. wide, laser printer.
From the main menu go to 3. System Maintenance > 2. Stock Table.
Hit F5=Move Export lines
Choose 1. Continue to Move / Export lines.
7. Export to printer/database/spreadsheet
1. All Lines with non-zero stock numbers. (any of the 3 choices will work)
Now select a bunch of the fields using the space bar and arrow down key. (just enough to exceed the 40 char. width)
F8 begin Export To...
program prompts: Export text to file...
choose 1. Printer
program promps: Length of printed lines (90) longer than printer width setting (40). Hit any key .
Now hit any key. Program crashes with the error message:
Return without GOSUB in line 56 of module STOCK3 at address 213:4351
Hit any key to return to system.


The program of course should not crash. It should warn the user about the extra length, as it does, but give user a choice to escape out (to change the selection), or to continue (and expect the text to wrap on the output to the printer/or truncate?).
As it is now you have no choice but to drive off the edge of the cliff!
Later,
Bruce

They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
Benjamin Franklin - Historical Review of Pennsylvania, 1759

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests