PRB: "For Each" Behavior on Dynamically Changing Control Array (129450)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q129450 SYMPTOMS
When using "For Each" to iterate through the elements of a control array
that changes dynamically during the execution of the loop, the following
unexpected behavior may occur: CAUSE
The set of items (to be iterated over by the For Each) is set at the
beginning of the iteration. Items added or deleted during the iteration do
not affect the set of items iterated over.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbprb KB129450 |
---|
|