Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Stupidly simple question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Resolved [RESOLVED] [2005] Stupidly simple question

    Hey guys,
    I know this is a really simple question, but I'm a bit brain dead at the moment and i cant seem to get round this problem.

    I have an array:

    Code:
    Dim array As Structure1()
    and i am trying to write some values to it which are read from an xml file. Now i have written the values from the xml file to local variables, but when i try and write them to the array i keep getting a Null Reference exception for the array. Now i haven't programmed in .NET for about a year and appear to have forgotten the basics! lol

    So if someone could help me with what i am doing wrong?

    Thanks in advance for any help.
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  2. #2
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2005] Stupidly simple question

    Code:
    dim AnArray(23) as  string
    
    AnArray(0)="LikeThis"
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: [2005] Stupidly simple question

    OMG thanks. Solved it...i must have tried everything else under the sun! I feel so stupid! lol

    Thanks so much for the quick reply
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  4. #4
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [RESOLVED] [2005] Stupidly simple question

    u r welcome. i do that all the time when i am defining arrays. remember to mark thread as resolved.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

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