|
-
Nov 29th, 2010, 03:49 PM
#1
Thread Starter
Hyperactive Member
For Each problem
Is there a way, other than using a counter variable, to tell what iteration you're on when in a For Each loop? In this case the For Each loop concatenates each value onto a comma-delimited string and right now it's incorrectly starting with a comma. I'd like to skip the concatenation on the 1st loop, like I'd do in a For/Next loop:
For x = 1 to 100
if x = 1 then
y = z
else
y = y & ", " & z
end if
Next x
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|