Jump to content
Sign in to follow this  
pve

Entering multiple values into Loops FS9

Recommended Posts

Hi all %{loop} %(l1 (>@c:FlightPlanWaypointIndex)) {clr2}{fnt2}%((@c:FlightPlanWaypointRemainingTotalDistance,nmiles) @DistAdj + )%!03d!%(l1 ++ s1 l2 <) The macro changes the value in the selected WaypointIndex remaining distance fields OK but it can only change one. If you select and change another it puts the correct value in the new field and removes the last value. Is it possible to add more than one value to the loop fields.


Paul EGLD

Share this post


Link to post
Share on other sites

Hi Paul,Could you explain a bit more your intentions?Something like:{loop}{color-font-etc}n1 (>@c:FlightPlanWaypointIndex)(@c:FlightPlanWaypointRemainingTotalDistance,nmiles)n2 (>@c:FlightPlanWaypointIndex)(@c:FlightPlanWaypointRemainingTotalDistance,nmiles)n3 ...etc{color-font-etc}(n++ loop control){next}???Tom

Share this post


Link to post
Share on other sites

Hello Tom I have all the flightplan speed, climb cruise and descent Fields in the FMC legs page working now and want to edit them. Using total distance as an easy one to learn with. The macro has the FP waypoint number to change and holds the value from the scratchpad sent from the LSK. Is your example saying I should give a separate number for each waypoint position. Paul


Paul EGLD

Share this post


Link to post
Share on other sites

Paul,Honestly, I don't follow you in what do you really want to do, sorry.Maybe if you could post an example, at least in pseudocode...Tom

Share this post


Link to post
Share on other sites

Hi Tom I can't do it within loop need to have separate value L:vars for each WP field. Thanks again for the clue will have to try another way. Paul


Paul EGLD

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...