SubMain not found

  • Thread starter Thread starter Phuff
  • Start date Start date
P

Phuff

I am not a newbie, but I'm embarrassed to say, that I am stummped. I
made no major changes to class names or anything of that sort, I simply
made some minor changes to business logic rules in one of my forms and
I recieved the SubMain was not found in... error. I thought it was a
weird time for it to come up, but I set the startup object to the form
I wanted and it compiled just fine. The next time I tried to compile
it gave me the same error! Ok, so I tried seting the startup object
back to my form...but it was already set to the form! I have changed
it back and forth through all possible methods of changing that
property. What the heck? Is this, yet another, VB or VS bug I need a
hotfix for?
 
Ok, so I figured it out. I had a variable called 'main' in my form and
I changed it to main1, that fixed everything. i guess main is a
reserved word, oh well.
 
Phuff,
Ok, so I figured it out. I had a variable called 'main' in my form and
I changed it to main1, that fixed everything. i guess main is a
reserved word, oh well.

I can assure you that we had never found this in your program.

:-)

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top