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 concatenation in xml?

Featured Replies

I am attempting to set a 12 character string as the WaypointVorIcao in the Flight Simulator GPS (fs9gps). The following works successfully:

'VK1	CVO  ' (>C:fs9gps:WaypointVorICAO)

VK1 then 4 spaces, CVO, then 2 spaces, within single quotes.However, I need this set to be accomplished using variable names as follows:'V', WaypointVorRegion, space, space, space, space, WaypointVorIdent, space, spacewhere WaypointVorRegion is always 2 characters long and WaypointVorIdent is 3 characters long.For the 12 character Icao string I tried the following, and a few variations, but with no success:

(V%(C:fs9gps:WaypointVorRegion)%	%(C:fs9gps:WaypointVorIdent)%  )

Is there a way to concatenate these strings so that the gps accepts it as one 12 character string?Thank you in advance.Bob

  • Commercial Member

Ok... I really think you're going about this whole thing the absolutely wrong way... though I confess that the full design of your project is unknown to me.There is a built in search function in the GPS. It works exceptionally well, especially when there are multiples and you really do not know which one they want.Unless you have this huge datafile of all the VOR ICAO values and what region they are physically in... your current approach is going to cause problems. Just because you're in K1, doesn't mean your selected VOR isn't in K2, as example. So, how are you going to know what region code to use? Also... region codes are FS specific under certain conditions... and I can assure you that information isn't public. Where will this information come from? An external data file? XML has no file access capability.You need to learn to use the search function correctly.

Ed Wilson

Mindstar Aviation
My Playland - I69

Good advice. Thanks

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.