PDA

View Full Version : How do I write this line in VB instead of C#?


david7777
05-23-2003, 10:15 AM
How to convert from this in C# to VB.net?

XmlElement element = (XmlElement)doc.DocumentElement.ChildNodes[index];

I tried this, but it didnt work:

Dim element as XmlElement = (XmlElement)doc.DocumentElement.ChildNodes[index]

angiras
05-23-2003, 10:31 AM
David make life easier ! : COPY !!

here's the link you need http://www.aspalliance.com/aldotnet/examples/translate.aspx

david7777
05-23-2003, 12:56 PM
lol! Very funny...

Its ok - i figured it out - i was just being stupid. One of those mind blocks where you cant remember the basics... :confused:

Thanx though! :thumbsup: