Photo Sets

Topics: Developer Forum, Project Management Forum
Jul 17, 2007 at 7:23 PM
Hey,

I am having problems, I can't figure out how I can figure out how many sets are on my account. The PhotoSets object doesn't have a .length or anything. I am putting the PhotoSets. PhotoSetCollection in to an Array of Photoset. But I don't know how to find out how big to make my array, and it would be really lazy to just make it 100 or something.

Thanks

Ben
Coordinator
Jul 18, 2007 at 9:23 AM
The PhotoSetCollection is an array of PhotoSet. It has a .Length property.

Console.WriteLine("There are " & psets.Length & " photosets")
For Each pset As PhotoSet In psets.PhotoSetCollection
     Console.WriteLine(pset.Title)
Next

Hope that helps.
Jul 18, 2007 at 3:57 PM
Very much Sam, Thanks