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 operater

Featured Replies

Hi allMaybe already known?Whilst working on my FMC scratchpad I needed to change number characters to values.Found string operater "val" worked. So with a concatenated chr number string it Converts number strings to integer and floating point values that accept usual FS manipulation.Only tested so far in FS9 and missing from the SDK.

Paul EGLD

Hi allMaybe already known?Whilst working on my FMC scratchpad I needed to change number characters to values.Found string operater "val" worked. So with a concatenated chr number string it Converts number strings to integer and floating point values that accept usual FS manipulation.Only tested so far in FS9 and missing from the SDK.
Hi,Would you please post and example format. Thanks. Very interesting.Bob
  • Author

Hi BobFS9 XML is<Macro Name="ScratchPadNumber">(L:ScratchSymb:0,number) chr val (L:ScratchSymb:1,number) chr val (L:ScratchSymb:2,number) chr val (L:ScratchSymb:3,number) chr val (L:ScratchSymb:4,number) chr val (L:ScratchSymb:5,number) chr val (L:ScratchSymb:6,number) chr val scat scat scat scat scat scat </Macro>Paul

Paul EGLD

  • Moderator
Found string operater "val" worked. So with a concatenated chr number string it Converts number strings to integer and floating point values that accept usual FS manipulation.Only tested so far in FS9 and missing from the SDK.
Interesting! The 'chr' is covered in the FSX SDK, the 'val' is not mentioned at all:
chr Converts a number to a symbol, 1 operator requiredExample: 65 chr will return 'A'
Is 'val' actually needed?

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

Hi BillIt would not concatenate without "val", But I restarted the computer and now it works without.Very strange!!And the insert code snippet still does not work for me.Paul

Paul EGLD

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.