| Maptitude GISDK Help |
Extracts a portion of a string.
sub_string = Substring(string input_string, integer start, integer length)
| Argument | Contents |
|---|---|
| input_string | Any string |
| start | An integer indicating the beginning of the substring |
| length | An integer indicating the length of the substring |
The portion of input_string starting at character start and extending length characters.
If start is null, returns a portion of input_string starting at the first character.
If length is null, returns a portion of input_string extending to the last character.
str = Substring("This is the GISDK Manual", 7, 8) // str = "s the GI"
| Function | Summary |
|---|---|
| Left() | Returns the leftmost n characters of a string |
| Right() | Returns the rightmost n characters of a string |
| Position() | Returns the position of a substring within a string |
| PositionFrom() | Search for the first occurrence of a substring within a string, starting the search at a designated position |
| PositionTo() | Search for the last occurrence of a substring within a string, ending the search at a designated position |
| StringLength() | Returns the length of a string |
| SubstituteChars() | Returns the input string with all occurrences of the characters listed in the find string replaced with the characters in the replacement string |
| ©2025 Caliper Corporation | www.caliper.com |