Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel

QTIPS - Inconsistent @Variable Behaviour

When developing routines involving @Variables which appear to behave inconsistently, bear in mind that the fact that a section of code compiles does not mean that it will work as intended. This is specifically the case when using += and -= operators. Variables such as @Crthigh and @Rn.Counter do not work with these operators. Try the following at TCL - EVAL @REC.COUNT = 10 ; @RN.COUNTER = 10 ; FOR X = 1 TO 10 ; @RN.COUNTER += 1 ; @REC.COUNT += 10 ; PRINT @RN.COUNTER, @REC.COUNT ; NEXT

(Volume 3, Issue 8, Page 9)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel