Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
procedure Delete(var S: string; Index, Count : Integer)
Removes Count characters from a string S, starting at Index.
Delphi leaves the string unchanged if Index is not positive or greater than the number of characters after the Index. If Count is greater than the rest of the characters after the Index, the rest of the string is deleted.
var s : string;
s:='DELPHI';
Delete(s,3,1)
//s=DEPHI;
|
String Types in Delphi
Understanding and managing string data types in Delphi's Object Pascal. Learn about differences between Short, Long, Wide and null-terminated strings.
Lenght,
Insert,
Copy,
Concat,
Pos,
SetLength
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|