VB net tut error

Jan 31, 2011 at 3:18 PM

Hello!

When I try to build this example, I have got an error:

 

Module Module1

Sub Main()
Dim wD As Animaonline.WeatherAPI.WeatherData = New Animaonline.WeatherAPI.WeatherData(Animaonline.WeatherAPI.LanguageCode.en_US, "Phoenix, AZ")
Console.WriteLine("Condition:{0} Temperature:{1}°F {2}°C", wD.condition, wD.temp_f, wD.temp_c)
End Sub

End Module

Type 'Animaonline.WeatherAPI.WeatherData' is not defined.

what do i need to replace that with ? can you list the correct code here thanks :D
Feb 8, 2011 at 8:01 AM

Hi,

Try like that : 

Public wD As Animaonline.Weather.WeatherData.GoogleWeatherData

wD = Animaonline.Weather.GoogleWeatherAPI.GetWeather(Animaonline.Globals.LanguageCode.en_US, "Phoenix, AZ")

bye bye