Programming, Science Fiction
Yes, it really feels like talking to a highly efficient, calculating, well-trained android: an assistant that seems impossible to have on this planet...
Full image ↗
I’m searching the POS project (MyShopFE) for the spot where variable-weight sales and the division by the list price are handled.And after a few moments:
I found that in FrmCassaVirtuale12 the division by the list price (to calculate the weight) happens in four places, only one of which is protected. Now I’ll check that this is the right form and look at the context of the unprotected spots.And then:
All clear. I’ll now apply the fixes with a Python script that works on the raw bytes, so I preserve the file’s ISO-8859-1 encoding and CRLF line endings.And finally:
Done. I fixed the “Division by zero” in the POS and noted that the projects live in C:\MyShop2005 (the .vbp files there point to the sources in C:\DataShopSource\MyShop2005, so the modified file is the right one). Cause. In FrmCassaVirtuale12.frm, the weight of a variable-weight item is derived by dividing the amount in the EAN code by the list price. This happens in four places, but only the sale-saving routine checked that the price was greater than zero. The other three didn’t, and their error handler shows MsgBox err.Description, hence the message in the screenshot. Changes, all in the same form:Yes, I believe that as soon as space technology becomes available on this prison planet, we’ll have fun with Androids, of which Claude and its kind are the forerunners 🎉🚀🚀😏 PS: the editor I use to write my blog articles was built with Claude’s help: a marvel 🤖