Horje
copy function delphi Code Example
Delphi how copy works
var
  Source, Target : string;

begin
  Source := '12345678';
  Target := copy(Source, 3, 4);
  ShowMessage('Target : '+Target);
end;
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"




28

Related
get last element of array delphi Code Example get last element of array delphi Code Example
length of string in delphi Code Example length of string in delphi Code Example
Delphi how copy works Code Example Delphi how copy works Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11