Login  Register

running macro loop

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

running macro loop

stevenbrookes
2 posts
Hi,
I have a block of macro code that I want to loop so long as the current slice number is less than th number of slices in the stack. I thought this would work but it doesn't:

while (getSliceNumber()<nSlices)
{
MACRO CODE HERE
}

When I select the block and run it has a selection it loops fine; just not as part of the whole macro.

I'd be grateful for any ideas as to what I'm doing wrong


Steve