can i use a case statement inside a do while loop?
here's my formula:
do
(element:= element + 1;
industry_name:=industry_name_shared[element];
select industry_name
case "Ariculture":
dot_spaces[element] = 10
case "Association":
dot_spaces[element] = 6
case "Consulting":
dot_spaces[element] = 10
case "Distribution":
dot_spaces[element] = 4
case "Education":
dot_spaces[element] = 6
case "Finance":
dot_spaces[element] = 4
case 'Food Safety':
dot_spaces[element] = 12
case "Food Service/Restaurant":
dot_spaces[element] = 22
case "Government":
dot_spaces[element] = 8
case "Manufacturing/Processing":
dot_spaces[element] = 30
case "Marketing":
dot_spaces[element] = 8
case "Packaging":
dot_spaces[element] = 10
case "Pest Control":
dot_spaces[element] = 10
case "Research/Laboratory":
dot_spaces[element] = 20
case "Retail/Supermarket":
dot_spaces[element] = 22
case "Sanitation":
dot_spaces[element] = 10
case "Transportation":
dot_spaces[22] = 6
default:
dot_spaces[element] = 0;
)
while element<={#group_position_in_array}-1;
but none of the elements in the dot_spaces array is populated
is it the case inside the do while or is it using array variables inside a case statement or something else?
thanks
kim
here's my formula:
do
(element:= element + 1;
industry_name:=industry_name_shared[element];
select industry_name
case "Ariculture":
dot_spaces[element] = 10
case "Association":
dot_spaces[element] = 6
case "Consulting":
dot_spaces[element] = 10
case "Distribution":
dot_spaces[element] = 4
case "Education":
dot_spaces[element] = 6
case "Finance":
dot_spaces[element] = 4
case 'Food Safety':
dot_spaces[element] = 12
case "Food Service/Restaurant":
dot_spaces[element] = 22
case "Government":
dot_spaces[element] = 8
case "Manufacturing/Processing":
dot_spaces[element] = 30
case "Marketing":
dot_spaces[element] = 8
case "Packaging":
dot_spaces[element] = 10
case "Pest Control":
dot_spaces[element] = 10
case "Research/Laboratory":
dot_spaces[element] = 20
case "Retail/Supermarket":
dot_spaces[element] = 22
case "Sanitation":
dot_spaces[element] = 10
case "Transportation":
dot_spaces[22] = 6
default:
dot_spaces[element] = 0;
)
while element<={#group_position_in_array}-1;
but none of the elements in the dot_spaces array is populated
is it the case inside the do while or is it using array variables inside a case statement or something else?
thanks
kim