DELETE is a standard string function in the CODESYS Standard library. It removes a given number of characters from a string, starting at a specified position, and returns the remaining string as a STRING(255) value. It is written as DELETE(STR, LEN, POS) and is used in structured text programs.
| Language | structured text |
|---|---|
| Code | DELETE |
| Group | String Functions |
| Syntax | DELETE (STR, LEN, POS) |
| Dialect | CODESYS |
| Name | Data type | Description |
|---|---|---|
| STR | STRING(255) | String to be modified. |
| LEN | INT | Length of the partial string to be deleted, number of characters. |
| POS | INT | Position in STR after which the deletion starts, counted from left starting with 1. |