String.Delete

Top  Previous  Next

 

Syntax

function String.Delete(Str: string; Index: integer; Count: integer): string

 

Description

Removes characters from Str, starting at character given by Index for a length of a maximum of Count characters.

 

Returns the string with characters removed.

 

See also

String.Length
String.Pos

 

Example

execute udsblock

as

begin

  /* returns "this string value" by removing "is a " */

  valueout = String.Delete('this is a string value', 6, 5);

  GUI.ShowMessage(valueout);

   

  /* returns "this string" by removing "value" */

  valueout = String.Delete(valueout, 12, 255);

  GUI.ShowMessage(valueout);

end