String values consist of a single character or collection of single characters. The length of the string is variable and can be a chain of zero or more characters (letters, digits, and punctuation marks) strung together. You use the string data type to represent text. String literals can be included in your scripts by enclosing them in matching pairs of single or double quotation marks. The following are examples of strings:
"Jerry saw the penguin and froze."
'"Where did you come from?" asked the king.'
A string that contains zero characters ("") is an empty (zero-length) string. The BSTR (Basic or Binary String) data type is a pointer to a wide character string used in Automation manipulation.
See Comparing Data Types across Languages for a table that compares the string data type across several different languages.
For high-level information about how these languages approach data type in general, see one of the following topics:
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License