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.

XML String Format Problem

Featured Replies

I want to display a leading zero in front of my "ADF Frequency", on a gauge I am making. I want the gauge to show this format "0654.0" and not like this "654.0". The articles I have found on the subject states that putting a zero in front of the "format specs" will do it. I have set the "Length=" at 5,6,7 and 8, to see if it was the problem, but it makes no difference. As soon as I increase the frequecy above "999.9", it will display this "1099.9". These two examples produce the same results. %((A:Adf active frequency:1,Kilohertz))%!4.1f!and%((A:Adf active frequency:1,Kilohertz))%!04.1f!What am I missing?greenco

Hi,Try:%((A:Adf ACTIVE frequency:1, KHz))%!06.1f!Jan"Beatus Ille Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Use 06.1f, NOT 04.1f :-) This WILL do what you want (just tried it)Note: the format spec x.yf (like in "C") means:A total of "x" positions (including the "."), with "y" positions as fraction.Rob BarendregtEDIT: Jan just beat me ...:-)

Thanks to both of you, the info did exactly what I wanted. I am making myself a lot of notes.greenco

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.