Jump to content
Sign in to follow this  
Guest juan_v

XML syntax

Recommended Posts

Guest juan_v

HelloThis code is part of a digital Total Fuel gauge that I had practice with:%((A:FUEL TOTAL QUANTITY WEIGHT, pounds) flr s0) %(l0)%!05d!%Could someone explaing me following: %(l0)%!05d!%I think it has to do with digital numbers displayed???????ThanksJuan

Share this post


Link to post
Share on other sites

Hi,flr s0 means: next smallest integer is stored in the value s0.This value is called in l0 and displayed as %!05d!%.So you read the total fuel quantity in pounds.For example there is 2000,6 lbs fuel left, but you read 02000 lbs.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites
Guest pscarratt

Hi,FYI you could just do %((A:FUEL TOTAL QUANTITY WEIGHT, pounds) flr)%!05d!%Which will give you the same effect.

Share this post


Link to post
Share on other sites
Guest juan_v

HiThanks both for your helpflr s0) %(l0)%!05d!%I knew what flr and s0 are used for and now %(l0) but still, was is acomplish with %!05d!%??? Let me be more specific, I have downloaded the panel SDK (not much in the XML section)and many otherinformation suggested in this forum I use FSpanel studio to at least learn some XML gauge programming. But when I come accross somethinglike %(l0)%!05d!% from what syntax table or description came from???Is there a book (there must be many), which one you recomend????Or are this secrets of the trade handle downd by word of.......e-mail?? Really, all what I want, at least, is an almost complete XML syntax tables with their information and usage with lots of examples....I guess I'm asking too much.....Thanks Juan

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