Pages from FlickrNet.GroupSearchResults

Topics: Developer Forum
Feb 16, 2010 at 3:17 PM

Hi,

I've noticed that Pages from FlickrNet.GroupSearchResults returns the value 1 even when no group is found.

Regards,

John

Coordinator
Feb 16, 2010 at 3:35 PM
That's what Flickr returns in the XML, so that's what I return.
Feb 16, 2010 at 4:25 PM

Ok Sam, I understand.

I've solved this issue like this:

 

                    FlickrNet.GroupSearchResults GroupSearch = flickr.GroupsSearch(group,PageNumber,MaxCellsPerRow*MaxRowsPerPage);
                    TotalPages = GroupSearch.Pages;
                    if (TotalPages != 0 && GroupSearch.Groups.Count != 0)

                    FlickrNet.GroupSearchResults GroupSearch = flickr.GroupsSearch(group,PageNumber,MaxCellsPerRow*MaxRowsPerPage);

                    if (GroupSearch.Groups.Count != 0) { blablabla }

John