Why does the code below not work? I have declared "VarQuantity"
Also, another time when i tried Set(VarQuantity; VarQuantity + 1). This also gave me error. But showing VarQuantity on a text label works just fine.

I haven't been able to find a solution to this for a while.
Thanks in advance