For / Next Loop Syntax in TurboIntegrator

Suggest and discuss enhancements for TM1
Post Reply
User avatar
Alan Kirk
Site Admin
Posts: 6606
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

For / Next Loop Syntax in TurboIntegrator

Post by Alan Kirk »

This isn't a thread for new discussion, just one for the record in case anyone searches for it.

As we know the principal loop syntax in TI is the While / End one. Its weaknesses are that (a) it generally requires a counter variable (unless you're testing cube values, for example), and more importantly (b) if you forget to increment that counter you end up with an unending loop which locks up your server. (I doubt that there's one of us who hasn't done that, save for those who hardly write any TI code at all.)

Way back when dinosaurs roamed the Earth I put in a suggestion for a For/Next loop syntax to be added to TI which would eliminate the second problem.

This was more in hope than anticipation given that it would have been a non-trivial change to the language.

This was the response that I received from IBM this morning:
while there is value in this enhancement, given current schedules, that enhancement is not currently planned
Still, at least they're aware of it.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply