Jump to content
Sign in to follow this  
Guest sbandersen

XML Help please

Recommended Posts

Guest sbandersen

I am trying to print a set and print a string using xml. ie. you click different buttons and the string diplayed changes. Is there a way to set strings using "STRING" (>L:Mode)? Or should i be using some complicated if els statements?Thanks

Share this post


Link to post
Share on other sites
Guest Vorlin

XML for FS9 can't handle strings but the best way to deal with this is to use the FORMATTED TEXT tag.Formatted text is probably the most powerful tag in FS9's XML but it uses a different syntax. The bad news is that it takes a day or so to get the hang of it. The good news is that once you know it you can circumvent a lot of limits in the FS9 XML tag set.In this case, you could use a FORMATTED TEXT setup to run a switch and have that switch handle your text selection. The "images only" limitation only applies to the SELECT CASE tags, not the SELECT CASE syntax within formatted text... which can be used to select images, macros and other things.It still won't store strings but by using formatted text you can use a switch rather than a tangled, nested if / else set.Do a forum search and be ready to invest a day or so learning... it's well worth the effort.Scott / Vorlin

Share this post


Link to post
Share on other sites
Guest sbandersen

Thanks I'll try that.

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