December 10, 200916 yr 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
December 10, 200916 yr 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 AviationMy Playland - I69
Create an account or sign in to comment