Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Helloooo !

 

I would like to do a simple operation with array and XML, but I'm a newbie and I don't know how to do...

I have an XML file with a <key> tag and a <value> tag. One <key> can contain many <value>.

 

What I want is to have a bidimensional array which have the <key> for the first dimension and the <value> for the second.

 

I think there's something I don't understand with array or collection. I tried to use them but I have always a NullReferenceException.

 

Somebody has an idea:D ?

  • 2 weeks later...
Posted

Thanks XyBoy, but I find a way to resolve my problem. I have builded a class which have a table as property. I use it like this :

Dim myValTab(20) as new myTabClass

'I simplified some of the numbers
For i = 0 to 19
 for j = 0 to 4
   for k = 0 to 8
     myValTab(i).table(j, k)
   next
 next
Next

 

It does exactely what I want. It's been a while since I've done something which works, yessss:D !

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...