Skip to content

TStrings.Pop

Remove the last string of the list and return it.

Declaration

Source position: classesh.inc line 1155

public 
function TStrings.Pop : string;

Description

Pop returns the last list in the string and removes it from the list. If there are no strings (i.e. Count equals zero), an empty string is returned.

See also

Name Description
TStrings.Add Add a string to the list.
TStrings.Shift Return and remove the first string in the list.
TStrings.Slice Return a subrange of strings starting at a given index.