Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15333

[RESOLVED] Strange Issue: For/Next Loop not incrementing

$
0
0
I'm facing an interesting issue, never faced before.
It's a simple FOR/NEXT loop but the value isn't incrementing? lol

Doing it on a new clean project, all seems fine, however the scenario is as follows.

Code:

Private Type mBanks
  isFilled as Boolean
  Pos as Integer
End Type
Dim Banks(60) as mBanks
Dim xLoop as Byte


For xLoop = 0 to UBound(Banks)
    If Banks(xloop).isFilled = False then GoTo NextItem

  '''''more stuff

NextItem:
Next

Interesting thing now is, xLoop is always stuck on 0 and doesn't seem to increment ?
is this a VB Bug / Mem leak or something?

Viewing all articles
Browse latest Browse all 15333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>