String.AppendChar(char extraChar)
Appends a single character to the end of the specified string, and returns the result.
IMPORTANT: The newly extended text is returned as a new string from this command.
The original string will NOT be changed. For
example, the following script will not do anything:
mytext.AppendChar('o');
what you probably want instead is:
mytext = mytext.AppendChar('o');
Example:
String mytext = "Hell";
mytext = mytext.AppendChar('o');
Display(mytext);
will display "Hello".
See Also: String.Append
|