Incrementing Over Ten as 11_1

# Thread: Incrementing Over Ten as 11_1

1. Senior Member
Join Date
Dec 1969
Posts
182

## Incrementing Over Ten as 11_1

With this code 1 and 11 turn out to be the same -- so what is the best or easiest way to make 11 become 11_1? Use an if statement or what?<BR><BR>&#060;INPUT TYPE="hidden" NAME="PATTERN" VALUE="&#060;%=x%&#062;&#060;%=i%&#062;"&#062;<BR> <BR>I am using a pattern, 11, 12, 13, etc 21, 22, 23 etc.

2. Senior Member
Join Date
Dec 1969
Posts
1,944

## RE: Incrementing Over Ten as 11_1

if the format is something like<BR>1_0,1_1,1_2.....1_10 then<BR>&#062;&#062;&#062;&#062;&#062;&#062;&#062; &#062;&#062;&#062;&#062;&#062;&#062;&#062;&#062;<B R><BR>if y &#062; 10 then<BR>y = 0<BR>x = x + 1<BR>response.write x & "_" & y<BR>else<BR>y = y + 1<BR>response.write x + 1 & "_" & y<BR>end if<BR><BR>just a quick though. You can explore based on it.initialize x,y appropriately and then loop.

#### Posting Permissions

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