RDOWeatherLocationsStatic object |
RDOWeatherLocationsStatic represents
a read-only collection of the
RDOWeatherLocation objects returned by
RDOWeatherServices.ResolveLocation.
Returned by:
RDOWeatherServices.ResolveLocation
See also:
RDOWeatherServices,
RDOWeatherLocations,
RDOWeatherLocation,
RDOWeatherConditions,
RDOWeatherForecastCollection,
RDOWeatherForecast
The example below resolves a location
name prints out the names of the matching locations.
strLocationToAdd =
"Санкт Петербург"
set
Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set
WeatherServices = Session.WeatherServices
WeatherServices.LanguageCodeID =
"de-de"
'return data in German
set
locations = WeatherServices.ResolveLocation(strLocationToAdd)
Debug.Print
"Found "
& locations.Count &
" matching locations for "
& strLocationToAdd &
":"
for
each
objLocation
in
locations
Debug.Print
objLocation.Name
next
|
Properties
Methods
|
Derived from:
IDispatch
|
|
Properties |
|
Count |
Integer, read-only.
Returns the number of
RDOWeatherLocation objects in the
collection.
|
|
|
Methods |
|
Item(Index) |
Returns an
RDOWeatherLocation object with the
specified index (1 through Count).
|
|
|
|