|
Delete
string
Delete(string string,
int pos, int count)
Return Value
A result string.
Parameters
string – a string that needs to be processed.
pos – the zero-based
index of the first character to delete.
count – the number of characters to be removed.
Remarks
Call this function to delete a character or
characters from a string starting with the character at pos.
If count is longer than the string, the remainder of the
string will be removed.
Example
The following example demonstrates
the use of Delete.
# Example for
Delete- remove
comma
strings
= Delete("Hello,
World",
5,
1)
Println("New
string is
",
s)
Output of the example
script:
New string is Hello World
|