I have an external iLogic rule that I use quite often, when the rule runs I am prompted to make two selections and the rule finishes based on those selections. If I want to repeat the rule I right click on the rule and run it again. Is there a way to run it and repeat it until I am finished using it?
Solved! Go to Solution.
Solved by Jason.Rugg. Go to Solution.
Solved by JelteDeJong. Go to Solution.
you can put your code in a loop. And ask the user if he wants to continue. this could be done like this:
Do '' put your code here..... MessageBox.Show("Random number: " & Rnd()) '<-- example If (MessageBox.Show("Do you want to continue?", "Continue", MessageBoxButtons.YesNo) = DialogResult.No) Then Exit Do End If Loop
depending on your rule its maby also possible to stop the loop on other conditions. for example you can check if the user selected something if not then you can exit the loop.
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com
Can't find what you're looking for? Ask the community or share your knowledge.