bug found - clearing rows in stock table; doesn't

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:336
Joined:Mon Mar 06, 2006 11:19 pm
Location:Broward County, Floriduhh
Contact:
bug found - clearing rows in stock table; doesn't

Post by brucef2112 » Tue Mar 07, 2006 12:57 pm

Hi Dale,

In the stock table, when deleting selected record(s) by using the 'Clear Selected Lines Only' method, the selected rows are cleared of data except for the 'Vendor Stock Number' column which is overwritten with the "Vendor Stock Number" value of what ever row was active (with the cursor) just before the "Clear Selected Lines Only" was selected.

To reproduce this use the following data in a stock table. Note that all other fields are not affected, so I will not include data for the other columns in order to keep the example simple. Using the "Stock Number" column and the "Vendor Stock Number" column is enough to view the problem.

Fill the table with some sample data like:
  • "Stock Num"| "Vendor Stock Num"
    ________1 | Apple
    ________2 | Bannana
    ________3 | Carrot
    ________4 | Dill
    ________5 | Eggplant
    ________6 | FriginMess
    ________7 | Grapes
While viewing the Stock Table screen, select > F5 > 1.Continue to 'move/export.' > 1.Select/Unselect Line > {then select records number 3,4 and 5}. Go back to the previous screen. *Before* choosing menu item number 3 to clear the lines, use the cursor keys to move the cursor's active focus from within the selected lines down to record number Six (This makes the problem more obvious). Now select > 3. Delete Selected Lines > 2.Clear selected lines only.

The Rows are cleared except for data in the "Vendor Stock Number" column. Not only didn't it clear the data in the last column but the three rows that had records 3,4,5 now show "FriginMess" in their "Vendor Stock Number" column.

After the "Clear Selected Lines Only", this is what the table looks like:
  • "Stock Num"| "Vendor Stock Num"
    ________1 | Apple
    ________2 | Bannana
    _________ | FriginMess
    _________ | FriginMess
    _________ | FriginMess
    ________6 | FriginMess
    ________7 | Grapes
At the point *just before* you select > 3. Delete selected lines, it doesn't matter which line (either within the selection or outside of it)has the cursor focus. When menu item "3. Delete Selected Lines" > 2. "Clear Selected Lines Only" is selected, the cleared rows' "Vendor Stock Number" will be overwritten with the value from the row that had focus when the rows were cleared. The result is the same regardless of the number of lines selected. The selected rows will have their data cleared from all columns except the "Vendor Stock Number" column which is over written with the "Vendor Stock Number" data of the row that had the cursor's focus when the clear data command was selected. The only time it will *seem* like all is OK is if you move the active cursor to a row that has an empty value in its "Vendor StockNumber" column. Then of course it will copy the empty field to the cleared records' vendor stock number column.

This error can be reproduced and is consistent in its behavior.
I have reproduced this on two different computers; Win2k and WinXP.
I have also created different "store names" to rule out corrupt data files.
Also tested using 6.38 beta2 with same results.

This only occurs when using the menu item "2.Clear selected lines only".
It does not seem to be a problem with the "Delete Selected Lines and Condense" as the selected rows are removed.

At the surface, this is just a "quirky thing" but you may want to make sure nothing is lurking below that may affect data integrity of the stock table or in your code that may be calling this somewhere else with similar results that can't be seen at the UI.

If anyone else can reproduce this please chime in,

thanks Dale,
Bruce

User avatar
Dale Harris
Forum Owner
Posts:1171
Joined:Sun Dec 28, 2003 10:19 pm
Location:Chicago
Contact:

Clear vendor stock number

Post by Dale Harris » Tue Mar 07, 2006 4:46 pm

You know Bruce, you can put two error reports in the same thread. That way when I fix them I only need to post at the end of one thread, not many. :)

Anyway, both the "copy / paste" error and the "clear vendor stock number" have been fixed and you can download the fix with the link below. This assumes that you are currently running version 6.37, if not wait for the full release download.

BTW, your description of the problems was exceptional. Want to be a beta tester?

The file below will overwrite your current POS.EXE, STOCKS.EXE and FILEINFO.EXE program files so make sure to back them up first.

<center> http://keyhut.com/pos638b3.zip </center>

Download this file to your current POS folder and then extract / unzip the file.
Dale

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 56 guests