JohnModig
asked on
Translation of C# array to VB.NET
Hi there.
I need some help translating the following small snippet from C# to VB.NET. Unfortunately I am totaly lost when it comes to C# and this time it is the array that is confusing.
Probably easy for you guys, but hard for me. ;)
Thanks in advance!
I need some help translating the following small snippet from C# to VB.NET. Unfortunately I am totaly lost when it comes to C# and this time it is the array that is confusing.
Probably easy for you guys, but hard for me. ;)
Thanks in advance!
//Purchase list (catalog purchases)
if(PRP_CatalogPurchases != null)
{
for(int i = 0;i < PRP_CatalogPurchases.Count;i++)
{
string[] Purchase = (string[])PRP_CatalogPurchases[i];
PRP_XmlData += "<catalog_purchase>" + Environment.NewLine;
PRP_XmlData += "<line_number>" + PRP_htmlspecialchars((string)Purchase[0]) + "</line_number>" + Environment.NewLine;
PRP_XmlData += "<id>" + PRP_htmlspecialchars((string)Purchase[1]) + "</id>" + Environment.NewLine;
PRP_XmlData += "<quantity>" + PRP_htmlspecialchars((string)Purchase[2]) + "</quantity>" + Environment.NewLine;
PRP_XmlData += "</catalog_purchase>" + Environment.NewLine;
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Same tool jorgesv13 :)
Yep, that page rocks! :)
ASKER
Oh, that was fast! Thank you guys. For the link as well. ;)
Open in new window