[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Delete part of a string.
Source position: systemh.inc line 1082
procedure Delete( |
var s: shortstring; |
index: SizeInt; |
count: SizeInt |
); |
var S: RawByteString; |
Index: SizeInt; |
Size: SizeInt |
); |
var S: UnicodeString; |
Index: SizeInt; |
Size: SizeInt |
); |
var S: WideString; |
Index: SizeInt; |
Size: SizeInt |
); |
Delete removes Count characters from string S, starting at position Index. All characters after the deleted characters are shifted Count positions to the left, and the length of the string is adjusted.
Shortstring variant's third parameter is called Count, in other overloaded variants it is called Index
|
Copy part of a string. |
|
|
Search for substring in a string. |
|
|
Insert one string in another. |
Program Example15; { Program to demonstrate the Delete function. } Var S : String; begin S:='This is not easy !'; Delete (S,9,4); { S:='This is easy !' } end.