string var-1[, var-2[..., var-n]];
The string statement is used to define alphanumeric variables temporarily used in the application. It is similar to the alpha statement but, unlike variables created with that statement, variables created as strings have no fixed length. Strings can be used anywhere an alpha variable can be used. (Strings were only introduced starting in CSPro 6.0 so much of the documentation refers to alpha variables.) Strings start out with a length of 0 and then automatically resize to match whatever is assigned to it. This feature make strings the preferred text variable to use, unless the length of the string is needed for formatting and calculation purposes.
alpha (10) myAlpha;
// myString starts out empty, with length 0
myString = "This is a test." // myString's length is now 15
myAlpha = "Hello";
myString = myAlpha; // myString's length is now 10: "Hello "
myString = "Hello"; // myString's length is now 5: "Hello"