FIX: Do Until Loop Evaluates "True" as -1 Exclusively (176641)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q176641 SYMPTOMS
A Do Until loop that uses a literal or a variable of type Integer as a
conditional will execute endlessly if the value is not -1.
RESOLUTION
Use a variable of type Variant or Long as the conditional argument for the
loop.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic
6.0.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbbug kbfix KB176641 |
---|
|