Problem with local variable name
Does anyone know why I had a problem with this? (FMPA9):
I defined 2 local variables, $qtyBEFORE and $qtyAFTER to transfer numbers from one TOC to another within the same script. The first variable listed in the script would retain its value as expected but the second always reset as '0' zero but only when it was reached in the script, resulting in the target field being wrongly set as zero as well. If I reversed the order of the variables, the same thing happened but in reverse. I eventually sorted it by changing the names to $qty_BEFORE and $qty_AFTER. Slightly worrying! Am I missing something?