|Top Previous Next|
CopyAndDelete is a combination of the functions Mid and Delete.
CopyAndDelete returns a substring containing iLength characters starting at position iStartPos while the returned string is deleted from sSource. The first character of sSource has the index 1.
If iStartPos is larger than the length of sSource, an empty string is returned and nothing is deleted from sSource.
If iLength specifies more characters than are available, only the characters starting from position iStartPos to the end of sSource are returned and deleted.