'// the image path(s) ---- Day
strLocalImagePath = strDayImagePath & WeatherConditions.selectSingleNode("icon").Text & ".png"
strDayImagePath = strDayImagePath & WeatherDay.selectSingleNode("day/part/icon").Text & ".png"
strMoonImagePath = strMoonImagePath & WeatherConditions.selectSingleNode("moon/icon").Text & ".png"
strDay1ImagePath = strDay1ImagePath & WeatherDay.selectSingleNode("day[@d='1']/part[@p='d']/icon").Text & ".png"
strDay2ImagePath = strDay2ImagePath & WeatherDay.selectSingleNode("day[@d='2']/part[@p='d']/icon").Text & ".png"
strDay3ImagePath = strDay3ImagePath & WeatherDay.selectSingleNode("day[@d='3']/part[@p='d']/icon").Text & ".png"
strDay4ImagePath = strDay4ImagePath & WeatherDay.selectSingleNode("day[@d='4']/part[@p='d']/icon").Text & ".png"
strDay5ImagePath = strDay5ImagePath & WeatherDay.selectSingleNode("day[@d='5']/part[@p='d']/icon").Text & ".png"
strDay6ImagePath = strDay6ImagePath & WeatherDay.selectSingleNode("day[@d='6']/part[@p='d']/icon").Text & ".png"
strDay7ImagePath = strDay7ImagePath & WeatherDay.selectSingleNode("day[@d='7']/part[@p='d']/icon").Text & ".png"
strDay8ImagePath = strDay8ImagePath & WeatherDay.selectSingleNode("day[@d='8']/part[@p='d']/icon").Text & ".png"
strDay9ImagePath = strDay9ImagePath & WeatherDay.selectSingleNode("day[@d='9']/part[@p='d']/icon").Text & ".png"
'// test if icon exist and display the appropriate image
If Dir(strLocalImagePath, vbNormal) = "" Then
strLocalImagePath = cstrBasePath & "weather_icons\na.png"
End If
If Dir(strDayImagePath, vbNormal) = "" Then
strDayImagePath = cstrBasePath & "weather_icons\na.png"
End If
If Not Dir(strLocalImagePath, vbNormal) = "" Then
.imgWeatherIcon.Picture = strLocalImagePath
.imgWeatherIcon2.Picture = strMoonImagePath
.imgWeatherIcon3.Picture = strDayImagePath
.imgWeatherIcon4.Picture = strDay1ImagePath
.imgWeatherIcon6.Picture = strDay2ImagePath
.imgWeatherIcon8.Picture = strDay3ImagePath
.imgWeatherIcon10.Picture = strDay4ImagePath
.imgWeatherIcon12.Picture = strDay5ImagePath
.imgWeatherIcon13.Picture = strDay6ImagePath
.imgWeatherIcon14.Picture = strDay7ImagePath
.imgWeatherIcon15.Picture = strDay8ImagePath
.imgWeatherIcon16.Picture = strDay9ImagePath
End If