[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.
:afrog:
Re: [2005] Stupidly simple question
Code:
dim AnArray(23) as string
AnArray(0)="LikeThis"
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
:thumb:
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.