Hi everyone, I am trying to nail down a problem and I noticed this:
if I use the following code in the exit method of my form
FOR EACH loControl IN ThisForm.Controls
ThisForm.RemoveObject(loControl.Name)
NEXT
The code is exiting the loop halfway through (there are 18 controls)
can anyone explain why this would occur? I would have thought a FOR..EACH loop would check every item
- Craig
"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson