How to set WHILE condition in a DO WHILE loop
Posted on 2006-05-25
I am quite new to programming so my question might seem a little silly. Please bear with me. I have a DO While loop. My Problem is that I want to set the WHILE condition I want to say that perform the statements in the Do loop WHILE the statement m=m+1 is executed. The m=m+1 statement is somewhere else in the code. How can I set my WHile condition? Below is my DO While loop:
Private Function RepeatLoop()
If m <= (UBound(SubDir) - 1) Then
ReadContents SubDir(m), m
Loop While (m= m+1 Is Not Executed) --- HOW TO SET THIS CONDITION
I have m as a global variable whose value is being used everywhere in code.
Thanks for any help.