FlightAware Discussions

Reading AirlineFlightSchedules data in VB.net

'****************************************************************************************
'*** The below sample codes from FlightAware work well ***********************
Dim r1 As EnrouteStruct
r1 = client.Enroute(“KHOU”, 10, “”, 0)
For Each e1 As EnrouteFlightStruct In r1.enroute
Console.WriteLine(e1.ident)
Next
'****************************************************************************************
'****************************************************************************************

However, the below codes do retrieve the flight data but cannot be read one by one because “r.ArrayOfAirlineFlightScheduleStruct” is not existed.

What is the best way to read the flight information one by one from r??

Dim r As ArrayOfAirlineFlightScheduleStruct
r = client.AirlineFlightSchedules(1570881600, 1570896000, “KDCA”, “”, “AAL”, “”, 10, 0)

For Each e As AirlineFlightScheduleStruct In r.ArrayOfAirlineFlightScheduleStruct
Console.WriteLine(e.destination.ToString)
Next

Thanks in advance.

Solved the problem. :slight_smile:

1 Like