PDA

View Full Version : Invalid Next Control Variable Reference



thejester
08-16-2019, 10:22 AM
What am I doing wrong here, in the end of this script:
24834

Bob Phillips
08-16-2019, 10:56 AM
Your next element is a label, not the control item. Change it to


Next lngIndexlbl

gmayor
08-16-2019, 08:31 PM
This looks like one of my code sequences. The problem is that there is a line break missing in your code. There should be a line break between lngIndex and lbl_Exit:
Thus

Next lngIndex
lbl_Exit:Where did you copy it from as it may need correction there?