Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

String variables in XML gauges ??

Featured Replies

Does anyone know if it's possible (and if so, how) to use string-variables in XML gauges ??Eg: Printing %((A:NAV1 IDENT,string) )%!s! works fine.However, (A:NAV1 IDENT,string) (>L:Test,string) and then printing%((L:Test,string) )%!s!does nothing.Any ideas ??Rob Barendregt

No ideas, it doesn't work. L:vars can't hold strings. There was however a workaround here in the forum some tim ago I think: NAV idents are up to 4 letters long and 4-letter strings can be coded as integers, so with a bit back and forward shifting it might be possible to code a 4-letter string in an integer, use this a L variable and decode the string back from the integer.Arne Bartels

It seems that the L vars need a quantity to display ( feet, meters, feet per second etc etc) as opposed to (L:VAR, string) . Look at the example below. Note the use of d 0 == ? in both the following examples. %((L:radaltadjust,feet) 5 max d 0 == ?)%!2d!%Also, following this thought process, you can use LVars to decide things like should string be visible or not.(L:Direction,degrees) d 0 == ? near s0 250 >= l0 290 <= && if{ (L:Groundspeed,feet per second) d 0 == ? near 4 >= } || %LEFT%!7d!%Hope that helps some.Steve

  • Author

Hi guys,Thanks for the answers.In the meantime I found another generic way of solving my problem (which was to print a specific string based on a some condition).Just using case and macro. :-) 'String1' 'String2' 'String3' 3 (G:Var1) caseBy setting G:Var1 to a specific value (in this case 0,1,or 2, based on some condition),%( @PrintString )%!s! will do what I want ...Cheers, Rob

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.