BillKilgore
Programmer
Hello All,
I've been engaged in translating some Basic applications into Delphi 7. I got to a triple-nested set of For loops in Basic and the innermost loop had a 'STEP' specification. It took me awhile to recall what that was and, as I recall, one can specify that a loop going through an Array can, instead of taking one at a time can be Stepped to go to every 3rd or 5th or nth place in the Array. An example of the BASIC For loop Line of code is as follows,
"FOR I% = 0 TO 32768 STEP 10".
Obviously a trivial example but I hope it clarifies what I'm trying to explain.
I can't recall and have been unable to find in my Pascal/Delphi texts an example anything similar in Delphi 7. I think I can gin up a 'While' or 'Repeat' loop to work but it'd be much more self-explanatory and self-commenting to have a STEP in Delphi to use.
Is anyone aware of such an option in Delphi For loops?
Bill Kilgore
I've been engaged in translating some Basic applications into Delphi 7. I got to a triple-nested set of For loops in Basic and the innermost loop had a 'STEP' specification. It took me awhile to recall what that was and, as I recall, one can specify that a loop going through an Array can, instead of taking one at a time can be Stepped to go to every 3rd or 5th or nth place in the Array. An example of the BASIC For loop Line of code is as follows,
"FOR I% = 0 TO 32768 STEP 10".
Obviously a trivial example but I hope it clarifies what I'm trying to explain.
I can't recall and have been unable to find in my Pascal/Delphi texts an example anything similar in Delphi 7. I think I can gin up a 'While' or 'Repeat' loop to work but it'd be much more self-explanatory and self-commenting to have a STEP in Delphi to use.
Is anyone aware of such an option in Delphi For loops?
Bill Kilgore