Jump to content
Sign in to follow this  
Guest bartels

XML custom string variables

Recommended Posts

Guest

HiI'm trying to make my own string variables based on a variety of inputs set in various gauges, and then have them popup and display automatically by a "controller gauge". But I'm not able to store and retrieve the strings successfully.Any ideas on how to store i.e. 'Hello World' (>L:Mystring,string) and have this variable displayed anywhere else? With "normal" %!s formattings all I get is a 0. return?My current workaround is several elements with a series of visible tags to display the needed string, but it doesn't spell good coding :D

Share this post


Link to post
Share on other sites
Guest

Huh? Has nobody really tried this sort of thing? (read: bump :D)

Share this post


Link to post
Share on other sites
Guest bartels

Tried yes. Solution no.Arne Bartels

Share this post


Link to post
Share on other sites

Karl,Was (read: bump ) one of the customized varibles you were trying?:-lol

Share this post


Link to post
Share on other sites
Guest

Easy? ;) Didn't find a solution yet, although I'm considering using case tags in a string a just select a string based on an enum value set by the various other gauges.I've used case in tooltips before so I think it should work out ok.

Share this post


Link to post
Share on other sites
Guest bartels

The use of case to translate an L:..enum to strings looks good I think. The 747 EICAS does similar for displaying warnings, even if quite complicated if{ } els{ } are used there.Arne Bartels

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