Published By | Date | Version | Knowledge Level | Keywords |
---|---|---|---|---|
Sprezzatura Ltd | 01 JAN 1992 | 2.11+ | EXPERT | @VARIABLES, @CRTHIGH, @RN.COUNTER |
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)