Form functions takes the value of a variable and format it as a String. They can be invoked in expressions and are also used by Print, Trace, and Assert commands. You can write custom Form functions for structures.
form( String [, StringFormat] ) form( String, Integer ) form( Enumeration [, StringFormat] )
If the first argument is a String and the template is an empty String then the default format ("C#") is used and the String is returned as is.
When the template String is an unsigned decimal constant the result is the first argument repeated that many times. The constant may not contain underscores and the limit is 255. It may also be quoted.
An enumeration declaration can either be a list of names or a range of integers. With names, it is in upper case and formatted as a String. Ranges are formatted using an integer template as described in the section on formatting integers.
L l Lower case of the source character or null. U u Upper case of the source character or null. C c Actual case of the source character or null. X x Exclude a source character from the result. = The following character is a literal copied to the result. Any other printable character is also a literal copied to the result. Expression Format Output "Boston" "CLUCLU" BoStoN "New York" "UXXX.U." N.Y. "Omaha" "C11!" Omaha! "alaska" "UL#" Alaska "Hi" 3 HiHiHi "*" "5" *****