Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 End If error
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic
Author Message
Pat




PostPosted: Tue Jun 06, 2006 10:04 am   Post subject: End If error

I'm making a tetris program in VB. I keep getting an error: Compile error: "End If without block If"

I don't know what this means. It highlights "End If" when the error comes up. I made sure all the If's have End If's and I don't think it's an extra "End If". Please help! It would be greatly appreciated! Very Happy
 
Sponsor
Sponsor
Sponsor
sponsor
GlobeTrotter




PostPosted: Tue Jun 06, 2006 2:03 pm   Post subject: (No subject)

Post your code. You probably do have an extra end if but don't notice it.
 
cool dude




PostPosted: Tue Jun 06, 2006 3:27 pm   Post subject: (No subject)

as globetrotter said u do have an extra end if and i'm willing to bet on that! this error only comes up if u accidently sticked an extra end if somewhere. try deleting the end if that gets highlighted does it work when u delete it?
 
Pat




PostPosted: Mon Jun 12, 2006 3:28 pm   Post subject: (No subject)

I just wanted to say I did fix the error. I had a "hidden" extra End If. Thanks for all your help!
 
HazySmoke)345




PostPosted: Mon Jul 03, 2006 8:58 pm   Post subject: (No subject)

Sometimes you can have a For loop without Next and it says that, too. Strange language, isn't it?

Don't just check the ifs and end-ifs. Check all the other statements, too.
 
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: