Creating a String Variable

#1
Is it possible to create and use a Lvar string variable like (L:Str_Var,string) in a formatted text element like so:
Code:
<Element>
   <Visible>(L:display_text, bool)</Visible>
   <Element>
     <Position X="265" Y="125"/>
     <FormattedText X="84" Y="26" Length="4" Bright="Yes" FontSize="26" Font="Arial Bold" Color="White" Adjust="Left" VerticalAdjust="Top" Multiline="No">
     <String>%((L:STR_VAR,string))%!4s!</String>
     </FormattedText>
   </Element>
</Element>
If so, what is the syntax for loading a string, like "TEST", into (L:Str_Var,string) ?

Thanks
 
#2
No. L:Vars can accommodate numbers only.

A few ways to handle strings is discussed in this FSDeveloper Wiki - Storing Strings.

There is also a general discussion about strings found in the gps module guidebook starting on page 202.

Finally, search for "strings" in this site and you'll find lots of XML examples.

Hope this helps.

Bob
 
Top