- Messages
- 9
- Country

Hello everyone,
First, I want to express my love for this website and forum, without all the knowledgeable resources that I have found here during the last 15 years I wouldn't be able to do what I do.
In order to update my 787 VC to a stable version which you can download here in beta: https://www.rikoooo.com/downloads/viewdownload/55/945 I need to fix a very annoying issue with a code that do not work as expected in PREPAR3D V4.
I have this code below which is supposed to return the last ILS frequency from a list in the database, however, it always returns the first frequency instead of the latest. This code works perfectly in FSX, I get the latest frequency as expected. But in Prepar3D v4 and v5 it returns the first frequency instead of the last one. What could possibly be wrong ??? There are no more hairs on my head
Full code is attached in GPS.zip this is Gavin Munro GPS v6
<Element>
<Position X="440" Y="247"/>
<FormattedText X="80" Y="30" Bright="Yes" Font="Century Gothic" FontSize="28" FontWeight="700"
Color="White" Adjust="Right" VerticalAdjust="Center" Multiline="No" Length="4">
<String>
%( 0 s3 s4 (C:fs9gps:WaypointAirportFrequenciesNumber, number) s2 0 > (C:fs9gps:WaypointAirportApproachName, string) 0 3 ssub 'ILS' scmp 0 == && )
%{if}
%(0 sp1)
%{loop}
%(l1 (>C:fs9gps:WaypointAirportCurrentFrequency, number))
%((C:fs9gps:WaypointAirportFrequencyName, string) (C:fs9gps:WaypointAirportApproachName, string) scmp 0 == )
%{if}\{nr}
%((C:fs9gps:WaypointAirportFrequencyValue, mhz) s3 )
%{end}
%(l1 ++ s1 l2 < )
%{next}
%{end}
%(l3 (>L:GPS1 ILS Frequency, mhz))%!3.3f!
</String>
</FormattedText>
</Element>
Thank you for your help
Erik
First, I want to express my love for this website and forum, without all the knowledgeable resources that I have found here during the last 15 years I wouldn't be able to do what I do.
In order to update my 787 VC to a stable version which you can download here in beta: https://www.rikoooo.com/downloads/viewdownload/55/945 I need to fix a very annoying issue with a code that do not work as expected in PREPAR3D V4.
I have this code below which is supposed to return the last ILS frequency from a list in the database, however, it always returns the first frequency instead of the latest. This code works perfectly in FSX, I get the latest frequency as expected. But in Prepar3D v4 and v5 it returns the first frequency instead of the last one. What could possibly be wrong ??? There are no more hairs on my head
Full code is attached in GPS.zip this is Gavin Munro GPS v6
<Element>
<Position X="440" Y="247"/>
<FormattedText X="80" Y="30" Bright="Yes" Font="Century Gothic" FontSize="28" FontWeight="700"
Color="White" Adjust="Right" VerticalAdjust="Center" Multiline="No" Length="4">
<String>
%( 0 s3 s4 (C:fs9gps:WaypointAirportFrequenciesNumber, number) s2 0 > (C:fs9gps:WaypointAirportApproachName, string) 0 3 ssub 'ILS' scmp 0 == && )
%{if}
%(0 sp1)
%{loop}
%(l1 (>C:fs9gps:WaypointAirportCurrentFrequency, number))
%((C:fs9gps:WaypointAirportFrequencyName, string) (C:fs9gps:WaypointAirportApproachName, string) scmp 0 == )
%{if}\{nr}
%((C:fs9gps:WaypointAirportFrequencyValue, mhz) s3 )
%{end}
%(l1 ++ s1 l2 < )
%{next}
%{end}
%(l3 (>L:GPS1 ILS Frequency, mhz))%!3.3f!
</String>
</FormattedText>
</Element>
Thank you for your help
Erik
Attachments
Last edited: