I have follwoing code:
for i:=0 to num_stripes by 1
R := Row1 + 5*i
gen_rectangle1(TransStripe, R,Column1,R+4, Column2)
intersection(TransStripe, LabelSelcted, RegionIntersection)
smallest_rectangle1(RegionIntersection, dummy, BeginCol, dummy, EndCol)
inizio := BeginCol - 5
fine := EndCol + 5
area_center(RegionIntersection, dummy, centro_row, centro_col)
gen_rectangle1(Str, R, inizio, R+4, fine)
dev_set_color('red')
dev_display(Str)
endfor
In the last few lines, I create a rectangle named Str
. Is there a way to create names on the fly, so that i have a variable for each rectangle? Str1, Str2 ...