ummm ... didn't get that completely .. just drunk my 3rd Cup of Coffee [Wink]

well, if $total is constant you could get rid of the while thing and do



for $i=0 to $total 
    ;here is the part i didn't understood
next



More Info ?
_________________________