View Single Post
  #1  
Old 30-01-2024, 02:52
Tihiy_Don Tihiy_Don is offline
Registered User
 
Join Date: Mar 2023
Location: Los Angeles Lakers
Posts: 43
Thanks: 91
Thanked 26 Times in 18 Posts
Tihiy_Don is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
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.
Reply With Quote
Sponsored Links