Jump to content

Recommended Posts

Guest ridgell

i would like to know how to write a string that will display like this; wn:3/5 where the 3 is the GPS FLIGHT PLAN WP INDEXthe 5 is the GPS FLIGHT PLAN WP COUNT ( assuming this is the total number of wpts)wn:%((A:GPS FLIGHT PLAN WP INDEX, number))%!0d!i do not know how to get the '/' character inserted and then the second var value in the same string line.

Share this post


Link to post
Share on other sites

You have to 'escape' out the backslash (or use a forward slash).%wn: %((A:GPS FLIGHT PLAN WP INDEX, number) 1 +)%!d!%%((A:GPS FLIGHT PLAN WP COUNT, number))%!d!The WP INDEX starts at 0 and the WP COUNT starts at 1, so add 1 to the index so that they match.--Jon

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...