Skip to main content

7.9.7 DELETE

Function

DELETE is called the string deletion function. It deletes a total of L characters starting from position P in the current string. OUT outputs the current string content after deletion

LD graphics

Alt text

Parameter description

Interface variableDeclarationData typeDescription
INInputSTRINGString
LInputINTNumber of intercepted characters
PInputINTStart interception position
Function nameReturn valueSTRINGString

Corresponding syntax

  • IN: Input string
  • OUT: Output the string after deleting the part
  • L: length to be deleted
  • P: Delete the starting position of the string

Example

  • LD sample animation is as follows:

alt text

  • ST example is shown in the following code:
OUT:=DELETE(IN:=IN1,L:=7,P:=9);