looping problem

1. Senior Member
Join Date
Dec 1969
Posts
425

## looping problem

&#060;% for i = 1 to MM_loop %&#062;<BR>&#060;%<BR>mikey = mikey & "&#039;weight_"& MM_loop & "&#039;,"<BR>%&#062;<BR>&#060;% next %&#062;<BR>&#060;% If Len(mikey) &#062; 0 THEN<BR> mikey = LEFT(mikey, LEN(mikey) - 1)<BR> END IF<BR> %&#062; <BR> &#060;%=mikey%&#062;<BR><BR>this should display <BR><BR>&#039;weight_1&#039;,&#039;weight_2&#039;, &#039;weight_3&#039;<BR><BR>but it is displaying<BR><BR>&#039;weight_3&#039;,&#039;weigh t_3&#039;,&#039;weight_3&#039;

2. Senior Member
Join Date
Dec 1969
Posts
425

## RE: DOH dun it

.

3. Senior Member
Join Date
Dec 1969
Posts
6,476

## RE: DOH dun it

It might have been easer and more efficient if you had of had a separate field to hold the weight totals of orders.<BR><BR>&#060;input type="test" value="0"&#062;<BR><BR>and just adding/subtract the newly selected values to it so it always holds a total value of everything.<BR><BR>I know you got it fixed.<BR>just something for you to think about...

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•