- Messages
- 95
- Country

Dear all,
I'm trying to do a very simple MCDU and I encountered this problem:
When I try to see multiple icaos with the same Ident, I'm trying to gain access to their lat/lon.
I have been partially successful if I query only one of the matched ICAOs, however, I get a 0 return if I ask for the lat/lon of one of the matched icao and another in an <Element> below. The code is the following and on its own it works fine. It's when I do another one with a different (>@c:IcaoSearchMatchedIcao) value that it goes berserk.
Any thoughts?
Thanks and Regards
I'm trying to do a very simple MCDU and I encountered this problem:
When I try to see multiple icaos with the same Ident, I'm trying to gain access to their lat/lon.
I have been partially successful if I query only one of the matched ICAOs, however, I get a 0 return if I ask for the lat/lon of one of the matched icao and another in an <Element> below. The code is the following and on its own it works fine. It's when I do another one with a different (>@c:IcaoSearchMatchedIcao) value that it goes berserk.
Any thoughts?
Code:
%( 0 (>@c:IcaoSearchMatchedIcao))%
%((@c:IcaoSearchCurrentIcao) (>@c:FacilityIcao))%
%((@c:FacilityLatitude, degrees) 0 >)%{if}N%((@c:FacilityLatitude, degrees))%!02d!%{else}S%((@c:FacilityLatitude, degrees))%!02d!%{end}%\t%((@c:FacilityLongitude, degrees) 0 >)%{if}E%((@c:FacilityLongitude, degrees))%!02d!%{else}W%((@c:FacilityLongitude, degrees))%!02d!%{end}%
%{quit}
Thanks and Regards
