VB net tut error

Jan 31, 2011 at 4:18 PM


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 9:01 AM


Try like that : 

Public wD As Animaonline.Weather.WeatherData.GoogleWeatherData

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

bye bye