Maximum Iterations
Property of the ScriptLine : Pre-Processing.
In the Unicode version of Q++ Studio, this property is one of the options of the Generation Options property.
Whenever Q++ evaluates a token it keeps track of the number of levels of iterations used in converting each individual token. Whenever that number reaches the value of the Maximum Iterations property, the processing of the token is stopped and a run-time error message is generated.
•Most tokens get converted with an iteration level of 0 (zero). The token comes in and is replaced by text that does not contain tokens. For example, [a1Dddd] may get converted to Monday.
•A token such as [a1:dmmmm] may be converted, depending on the language, into [Mmmm] [d][.d] which would cause the token conversion to be called 3 more times to evaluate these 3 tokens, hence a recursion level of 3.
•Even recursive macro tokens that generate complete months and format different elements of each day differently, usually reach an iteration level of about 300 only.
As can be seen from the above examples, the default value for this property, 1000, should be more than enough in all cases. If necessary, this value can be increased to 10000, but most of the time you will not need to change the value of this property.