[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Delete part of a string.
Source position: line 0
procedure Delete( |
var s: shortstring; |
index: SizeInt; |
count: SizeInt |
); |
var S: AnsiString; |
Index: SizeInt; |
Size: SizeInt |
); |
var S: WideString; |
Index: SizeInt; |
Size: SizeInt |
); |
Deleteremoves Countcharacters from string S, starting at position Index. All characters after the delected characters are shifted Countpositions to the left, and the length of the string is adjusted.
None.
Copy |
|
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.