ezeio2:scriptref:strdel

This is an old revision of the document!


Remove bytes from a string

Description

strdel( string[], start, end )

Remove some characters from a string

Parameters

string string to be manipulated
start position of first character to be removed
end position of last character to be removed

Return value

Returns 1 if successful.
Returns 0 on error.

Example usage

    new s{20} = "CatDogAnt";
 
    strdel(s, 3, 6);  // returns 1
 
    // s is now "CatAnt"
  • ezeio2/scriptref/strdel.1560624318.txt.gz
  • Last modified: 2019-06-15 18:45
  • by andreh