Skip to Content
0
Former Member
Feb 25, 2011 at 10:51 AM

Step Clause help

37 Views

Hi,

I am trying to learn crystal and need to understand more what the step clause does in a loop. Is it possible someone could help and clearly be able to explain it. In the documatation the following code is shown but I dont get what the step command does:

numbervar index;

stringvar display_region := "";

for index := 1 to count({?Selected Region}) step 2 do

(

display_region := display_region + ", " + {?Selected Region}[index]

);

mid(display_region,3);

Thanks