I’m still having difficulties with this issue. I have these Text Editor Objects in a form:
Each of the Cartage and Fees & commissions objects calls this section of code in a procedure:
elseif info("formname") contains "livestock purchase" and (Button contains "gross cost" or Button contains "cartage" or Button contains "commission" or Button contains "quantity")
TaxStatus = "GST-payable"
«Fees & commissions» = zeroblank(«Fees & commissions»)
Cartage = zeroblank(Cartage)
«Nett purchase price» = zeroblank(«Gross cost» + Cartage + «Fees & commissions»)
«GST paid» = zeroblank(?(TaxStatus = "GST-payable",round((«Nett purchase price»/11),0.01),0))
«Average price» = zeroblank(?(Quantity > 0,round(«Nett purchase price»/Quantity,0.01),0))
A terminated entry in the Cartage field tabs to the Fees & commissions field where the blue bezel highlights and disappears. In order to enter data into the Fees & commissions fields, I have to click in it first.
If, however, I disable the procedure call for the Cartage field, the Fees & commissions field highlights with a bezel and I can enter data immediately. That’s no help of course because the other values won’t be updated.
In an attempt to see what was happening, I put the last two statements in:
With the procedure call for the Cartage field restored, I get this when I tab out of the Cartage field:
Now this really baffles me because it appears that just tabbing into the Fees & commissions field is triggering the procedure except that the Button values are being displayed in what looks to me like the wrong order. Is that really what’s happening?