Quote:
Originally Posted by hitman797
use Copy to cut the string.
Length of 'Welcome World' = 13 integer.
W e l c o m e W o r l d
1.2.3.4.5.6.7.8.9.10.11.12.13
Indx = 1.2.3.4.5.6.7.8.9.10.11.12.13
Count = number of characters after the index.
Copy('Welcome World', 1, 3); = 'Wel' String.
function Copy(S: String; Indx, Count: Integer): String;
function Length(S: String): Longint;
|
I kind of brought the solution to the questions above in my function, the question was different.