Navigation: Function Reference > General Utility Functions > copy()

copy()

Top  Previous  Next

copy( source: String; startchar, count: Integer ) : String;

 

Copies count characters from source starting at startchar to create a new string. The first character of a string has an index = 1.

 

Parameters

 

source

string value

startchar

starting index into source (integer)

count

number of characters to copy

 

s1 := 'my dog';

s2 := copy( s1, 4, 3 );

//s2 now equals 'dog';