String variables can hold character strings with up to 65,535 characters. Each character is stored as the corresponding Unicode value. String variables are suitable for word processing within programs and for temporary storage of any non-printable character up to a maximum length of 64 Kbytes. The memory required for storing string variables depends on the number of characters in the variable. The type-declaration character is &quot; $ &quot; .
字符串变量可以保留最长达 65,535 个字符的字符串。每个字符都存储为相应的 Unicode 值。字符串变量适合在程序内进行字处理，也可以用于临时存储最长达 64 KB 的不可打印字符。存储字符串变量所需的内存量取决于此变量中含有的字符数。其类型声明字符是“$”。