On Oct 19, 4:32 pm, Ray Baxter <[email protected]> wrote:
> How many events are in your results? If there are more than 25, you
> will have page through the events or pass a higher value as the
> max-results parameter to see them all.
>
> Ray

I didn't realize the 25 event limit so that helped me tremendously,
Ray.

In the .NET API I couldn't find a property called max-results but it
looked like NumberToRetrieve should do it.  Unfortunately, it didn't.
Like .StartDate and .EndDate, setting those properties appears to do
NOTHING.

            myquery.SingleEvents = true;
            myquery.NumberToRetrieve = 50;
            myquery.StartDate = startdate; --startdate is a DateTime
            myquery.EndDate = enddate; --enddate is a DateTime

When I examine myquery in the IDE after those lines, SingleEvents is
set to true, but the other values are set to 0, 1/1/0001 and 1/1/001
respectively.

However, I utilized the .ExtraParameters member this way:

myquery.ExtraParameters = "max-results=50&start-min=" +
startdate.ToString("yyyy-MM-dd") + "&start-max=" + enddate.ToString
("yyyy-MM-dd");

In fact, what's funny is now that I have the startdate and enddate
working, I don't even NEED to retrieve every event in the calendar:
the whole reason I was doing that was to parse through each entry to
see if it was within my date range.  Now I can finally limit it
beforehand.  Thank you for your help Ray, it was invaluable!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to