Nested IFs is the way I do it, with breakouts to functions.
I suppose that you could add a single iteration For ... Next loop, and Exit
For within that, but seems kludgy to me.
--
HTH
Bob Phillips
(replace xxxx in the email address with gmail if mailing direct)
"Andrew Hall NZ" <(E-Mail Removed)> wrote in message
news:269822D0-5F79-4419-8E0C-(E-Mail Removed)...
> Most of my recent scripting has been with Javascript (for Photoshop). With
> For Loops I am missing the ability to use a 'continue' command which skips
to
> the next iteration of the for loop. I can achieve the same with IF
statements
> but sometimes, when one is already within a series of nested IF
statements,
> this becomes rather cumbersome. I suspect I can also achieve it with
> functions and / or subroutines but again that looks a messy to me. I guess
I
> could use Go To the first line inside the loop, while resetting the
counter
> (though that won't work in For Each).
>
> How do the pro's do it in VBA?
>
> One other question while I am at it. One of the best methods for learning
> Photoshop Javascript was to got to the Adobe Share Scripts site and
download
> scripts and look at them. Is there an equivalent for VBA you would
recommend.
>
> TIA
>
> Andrew
|