Training
Module
Modify the content of strings using built-in string data type methods in C# - Training
Explore using the built-in string data type methods in C# to modify strings.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Text.RemoveRange(text as nullable text, offset as number, optional count as nullable number) as nullable text
Returns a copy of the text value text
with all the characters from position offset
removed. An optional parameter, count
can by used to specify the number of characters to remove. The default value of count
is 1. Position values start at 0.
Remove 1 character from the text value "ABEFC" at position 2.
Usage
Text.RemoveRange("ABEFC", 2)
Output
"ABFC"
Remove two characters from the text value "ABEFC" starting at position 2.
Usage
Text.RemoveRange("ABEFC", 2, 2)
Output
"ABC"
Training
Module
Modify the content of strings using built-in string data type methods in C# - Training
Explore using the built-in string data type methods in C# to modify strings.