String.Truncate(int length)
Returns a version of the string that has been truncated down to length
characters.
NOTE: The new string is returned from this function; it
does NOT modify the original string.
Example:
String mystring = "Hello World!";
String truncated = mystring.Truncate(4);
Display("Original: %s, Truncated: %s", mystring, truncated);
will display "Original: Hello World!, Truncated: Hell".
See Also: String.Append, String.Substring
|