April 3, 201115 yr 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
April 3, 201115 yr 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
April 3, 201115 yr 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
April 3, 201115 yr 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
April 3, 201115 yr 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