Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > VB nigh nonsensical


Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2008, 02:49 PM
FergusM FergusM is offline
Newcomer
 
Join Date: Feb 2008
Posts: 1
Default VB nigh nonsensical


Okay, I am creating a very simple program with VB 6. First, an explanation of what it does. Right now, it is a grid of 9x9 squares. They start off green. One goes red, one goes bright green. The red one has a chance of making squares adjacent to it red. When the bright green square is touched by a red square, it spreads to all adjacent red squares.

All of this was working fine. I added a completely separate part of the program in a new subroutine. I changed nothing in the rest of the program. Suddenly, it stops working. The bright green square spreads properly. However, the red squares only seem to get a chance to spread ONCE; that is, the first time they are called to spread is the only time they will do so. Eventually, it will stop altogether. I then removed all the new code, leaving me with the exact same thing I had before, but the problem persists.

I have no backups; I thought I was creating them but saving a new project apparently still accesses the same form. GAH!

I have attached a working compiled exe I made earlier as well as the full project. It is rather simplistic and short, so I hope the commentary is sufficient. All the stuff marked as 'test' is just stuff I'm removing later, should still be in there now.

Thanks for your time.

Edit by loquin: I removed the attachment, as we don't allow attachments with executables. Ref the Posting Guidelines. Please rebuild the ZIP file (Note: be SURE to include any .frm, .bas, .frx, .cls, or other project files in the ZIP, as only the project file, which by itself is useless, was included) and edit the post in advanced mode to re-attach the zip file.

Last edited by loquin; 02-27-2008 at 05:07 PM. Reason: removed attachment with executable
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->