Results 1 to 6 of 6

Thread: [RESOLVED] XML help needed

  1. #1

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    Resolved [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:
    1. Imports System
    2. 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?

  2. #2
    Fanatic Member Andy_P's Avatar
    Join Date
    May 2005
    Location
    Dunstable, England
    Posts
    669

    Re: XML help needed

    They need to go before the class declaration, eg:

    VB Code:
    1. Option Strict On
    2.  
    3. Imports System
    4. Imports System.XML
    5.  
    6. Public Class Form1
    7.  
    8.     Inherits System.Windows.Forms.Form
    9. '
    10. '
    11.  
    12. 'etc
    Using Windows XP Home sp3
    Mucking around with C# 2008 Express
    while ( this.deadHorse ) { flog( ); }


  3. #3

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    Re: XML help needed

    Thanks, I figured it out just as you posted.
    He who never made a mistake never made a discovery?

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: XML help needed

    Don't forget to mark your thread resolved
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  5. #5
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    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."


  6. #6

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    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
  •  



Click Here to Expand Forum to Full Width