|
-
Jun 1st, 2006, 12:22 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] XML help needed
When I add the following to my form the Imports have a squiggly line under them and if you mouse over it the tool help says,
"Imports" statements must precede any declarations.
What does this mean and how to correct it?
VB Code:
Imports System
Imports System.Xml
--- edited-----
Ok, I see; It needs to go above the class at the very top. Above everything else.
Last edited by Navarone; Jun 1st, 2006 at 12:27 PM.
Reason: Resolved
He who never made a mistake never made a discovery?
-
Jun 1st, 2006, 12:27 PM
#2
Re: XML help needed
They need to go before the class declaration, eg:
VB Code:
Option Strict On
Imports System
Imports System.XML
Public Class Form1
Inherits System.Windows.Forms.Form
'
'
'etc
-
Jun 1st, 2006, 12:29 PM
#3
Thread Starter
Fanatic Member
Re: XML help needed
Thanks, I figured it out just as you posted.
He who never made a mistake never made a discovery?
-
Jun 1st, 2006, 12:29 PM
#4
Re: XML help needed
Don't forget to mark your thread resolved
-
Jun 1st, 2006, 02:03 PM
#5
Re: [RESOLVED] XML help needed
I am not sure what version you are using but in 2005 if you right click on the squiggly line it will tell you what the problem is and give you a few choices to fix it.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Jun 1st, 2006, 02:06 PM
#6
Thread Starter
Fanatic Member
Re: [RESOLVED] XML help needed
thanks. I am using 2003. I figured out what I was doing wrong.
Appreciate your feed back.
He who never made a mistake never made a discovery?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|