Sign in to follow this  
Guest bartels

XML custom string variables

Recommended Posts

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

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

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

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

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