Language basics / Data types |
The CHAR data type is a fixed-length character string data type.
CHAR[ACTER] [ (size) ]
CHAR variables are initialized to NULL in functions, modules and globals.
The size can be expressed in bytes or characters, depending on the length semantics used in programs.
CHAR variables are always filled with trailing blanks, but the trailing blanks are not significant in comparisons.
MAIN DEFINE c CHAR(10) LET c = "abcdef" DISPLAY "[", c ,"]" -- displays [abcdef ] IF c == "abcdef" THEN -- this is TRUE DISPLAY "equals" END IF END MAIN