Futurebasic/language/string expressions

String Expressions
Revised for FBtoC 15 February 2008

Description
A string expression is anything that can be evaluated as a string of 0 to 255 characters. (Note that FutureBASIC also provides "Containers" with 2GB text capacity that operate very similarly to a standard string). A string can be expressed in any of the following ways:

Simple Expressions
 A string literal, or a string variable. See Appendix C: Data types and Data Representation, for more information. Examples: surname$(23)     &quot;Friday&quot; A reference to any user-defined function that returns a string value. Example: fn MyStringFunc$( &quot;something&quot; ) A value returned by any built-in FB function whose name ends with $ Examples: chr$( 7 )     hex$( z&amp; ) A value returned by the  function, or by the   function. Examples: using &quot;##.#&quot;; pi     str#( 130, 5 ) 

Compound Expressions
A compound string expression is a list of simple string expressions separated by the concatenation operator "+". The syntax of a compound string expression is:

The "+" operator builds a longer string by concatenating the operands. For example:

This expression has the value.