strdel()
Description
Delete characters from the string.
For example, to remove the letters “ber” from the string “Jabberwocky”, set start to 3 and end to 6.
Syntax
strdel(string[], start, end);
Parameters
Variable | Input |
|---|---|
| The string from which to remove a range characters |
| The index of the first character to remove (starting at zero). |
| The parameter end must point behind the last character to remove |
Returns
Return value | Return explanation |
SCRIPT_OPERATION_SUCCESS | Operation successful. |
SCRIPT_OPERATION_FAILED | Operation failed. |
Function call example
Characters deletion example
new array[30]=''Dele 12345 te'';
main(){
value = strdel(array,4,11);// this will delete number and space characters out of array
while(1){
Delay(1000);
}
}