recently the extended property system seems to have changed, so it scrambles
the property array order from the way it was saved. you can no longer rely
on a property being in the index you placed it. So I created this function
to help. it lets you look up an extended property by name.

function getExtendedPropertyByName(extendedPropArray,propName)
{
   for(var i = 0; i < extendedPropArray.length; i++)
   {
      if(extendedPropArray[i].getName() == propName)
      {
         return extendedPropArray[i].getValue();
      }
   }

   return '';
}


example use:

var extendedProperties = event.getExtendedProperties();

var eventSeason = getExtendedPropertyByName(extendedProperties,'season');

--~--~---------~--~----~------------~-------~--~----~
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