Hi there,
I'm calling a function which reads XML and holds results in this kind of format:
Item 1: Name="", Category="", InstallerURI=""
Item 2: Name="", Category="", InstallerURI=""
etc.
I need some kind of return variable which will be able to hold this data. So far, I have tried:
// Create struct to hold list attributes
public struct downloadInfo
{
public string[] name, catagory, installer;
}
// Lists downloads
public static downloadInfo downloads()
{
downloadInfo downloadlist = new downloadInfo;
Which doesn't work.
// Create struct to hold list attributes
public struct downloadInfo
{
public string name, catagory, installer;
}
// Lists downloads
public static downloadInfo downloads()
{
downloadInfo downloadlist = new Array (of) downloadInfo;
But no such 'Array of Struct' method exists.
Jagged arrays have to have a defined length. I don't like that.
Now what? How can I return my data to the caller?