|
Navigation: Function Reference > General Utility Functions > delete() delete() |
Top Previous Next |
delete( source: String; startchar, count: Integer ) : String;
Deletes count characters from source starting at startchar to create a new string. The first character of a string has an index = 1.
Parameters
source |
string value |
startchar |
starting index into source (integer) |
count |
number of characters to delete |
var s: string;
s := 'abcdefg';
Delete( s, 4, 4 );
//s is now equal to 'abc';