copy function delphi
//This function will copy or selct part of a string and assign it to another variable
//syntax
// <variable name> := copy(<string>, <start index>, <number of characters>);
//Example
var
Phrase : String;
phrase := copy('Hello world', 1, 5)
// Output will be phrase := "Hello"