Jump to content

Confused By Loops


ab21
 Share

Recommended Posts

If......     Then......


Do
    if ......
    .
    .
                .

    Do
        .
        .
    Until ...
    
    .
    .
    .
    .
    
    If ......
        .
        .
        .
    EndIf
Until ......
EndIf

basically this is the skeleton of the loop, the problem is, whenever i add more codes after this code, they are not being executed... i don't think this loop here suppose to end the entire script. what did i do wrong?

Link to comment
Share on other sites

Your missing and EndIf in the above 'sample'. Are you sure that it actually does finish the loop? and is not stuck in there. Add a couple message boxes in certains part to see if it does infact reach it. Without seeing your code we can't help much.

Edited by Burrup

qq

Link to comment
Share on other sites

The pseudocode look right. I'm not able to say exactly, because this not real code, but most likely you loop don't reach condition and fall into infinity. Try to check conditions at Until and if need use control words like Exitloop, Continueloop.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...