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

Featured Replies

Would someone be kind enough to supply an explanation of the variables used when placing a string.specifically the x,y values within the brackets, but also how to add decimal places and fix text to significant numbers. ( so that instead of just seeing 1 you could see 001)i've checked the board and seen a few examples but not sure what each bit does.cheers

Hi,Check Arne Bartels xml guide dokument in that zip there are some more zipped files with explanation of string printing. You find the link at the top post ie xml faqRgdsEugen

  • Author

Hi,An example: = where in the gauge. = single line. multi never tried.A few examples:HalloOne with a funtion concerning the 0 and decimals:%((Indicated Altitude,feet))%!d% shows p.e. 500%((Indicated Altitude,feet))%!0d% shows p.e. 00500%((Indicated Altitude,feet))%!0.1d% shows p.e. 00500.0%((Indicated Altitude,feet))%!0.2d% shows p.e. 00500.00(Couldn't check the right synthax this moment , but it will give a general idea)Jan"Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Jan,I think this your example be would be valuable in the FAQ please post it to the faq.BrgdsEugen

excellent

just had a go with the text and i can't get the leading zeros to show. this means the text is going to move around within the gauge

  • Author

Hi,First we need to see the code of your gauge.Then we can make some adjustments.Anyway, the next examples are ok:%((A:AUTOPILOT HEADING LOCK DIR, degrees))%!03d!%((A:AUTOPILOT VERTICAL HOLD VAR, feet per minute))%!04d!%((A:AUTOPILOT ALTITUDE LOCK VAR, feet) 99999 min 0 max)%!05d!Try and see.Jan"Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

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.