So if I change the logic of the Do Until so that the VerPG gets the data after it loops to the second page where the items will be equal it should work.
Would it be better if I have it Loop Until instead of Do Until? Or can I have it execute the Do while STMT field is not empty and then Loop Until the Ver = VerPG?
Main Topics
Browse All Topics





by: robinuPosted on 2008-05-18 at 09:46:09ID: 21593241
Not knowing anything about WRQ reflection sessions, in your loop the statement
Do Until Ver = VerPG
determines when the loop stops.
Both the variables Ver and VerPG get a value before the loop starts, and
after that inside the loop the never get a new value. So when the starts with
different values for Ver and VerPG, of course the loop continues and continues..