06-09-2008 12:45 PM - edited 06-09-2008 12:45 PM
No. If the loops are running independently then they will run simultaneously. If they're nested, then the outer loop will only iterate once the inner loop has run though. I think you have a problem with terms.
@cheyne wrote:
Hi,
If the 2 loops running independently, then it means 1 loop will complete before another loop starts. But I am looking for 2 loop nested together where 2 are running at the same time.

06-09-2008 01:23 PM
In the example I provided, the loops are in a Case Structure, therefore only 1 will run at a time. The loops are selected by the order that is set in a control.
I didn't understand that they might have to run simultaneously.. (they don't, do they? 😮 )
I didn't put anything in the actual loops (For Loop), which is where you place your own code.
The number of iterations and order of loop selection will need to be from your own code also. What I provided was just for the example.
There seems to be a lot of confusion about what you really need. If none of us hit the target, can you provide more details description of what you are trying to do?
Thanks,
RayR
06-09-2008 08:09 PM
06-10-2008 01:43 AM
06-10-2008 07:09 AM
Are you familiar with a State Diagram? It would be good if you could describe what an event triggers and what needs to handle that event (ie: Loop).
It would be better to describe concurrent events than using a flowchart.
Here is a description from Wikipedia: http://en.wikipedia.org/wiki/State_diagram
If you do a Google Search, you will see a number of diagrams. Using this may be easier to describe your thoughts.. 😉
RayR
06-10-2008 08:55 AM - edited 06-10-2008 08:55 AM