Skip to content

TStrings.Shift

Return and remove the first string in the list.

Declaration

Source position: classesh.inc line 1165

public 
function TStrings.Shift : string;

Description

Shift returns the first string in the list and removes it from the list, causing all values to shift one position. If there are no strings in the list, an empty value is returned.

See also

Name Description
TStrings.Slice Return a subrange of strings starting at a given index.
TStrings.Pop Remove the last string of the list and return it.
TStrings.Delete Delete a string from the list.
TStrings.Insert Insert a string in the list.