This is a Visual Basic question. You have arrived at the Small Basic forum. The two languages are very different and are aimed at a different target audience. I suggest you repost at the Visual Basic forum.
I'm not sure i += 1 is an allowable VB construct. This shortform is used in the C family of languages. You may need to comment out that line and uncomment the following one.
Marked as answer byFasiehFriday, May 22, 2009 3:12 PM