"remove" (string::remove)

Removes n characters from the string, starting at the given pos index.

Synopsis

int string.remove(int pos, int n);

Parameters

Parameter Description
pos Start index
n Number of characters to remove.

Description

Removes n characters from the string, starting at the given pos index.

If the specified pos index is within the string, but pos + n is beyond the end of the string, the string is truncated at the specified pos.

Example

main()
{
  string s = "Panel_01";
  s.remove(5, 3);
  DebugN(s); // "Panel"
}

Console output:

WCCOAui1:["Panel"]

Assignment

String