Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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