View Single Post
  #2  
Old 29-01-2024, 16:17
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 486
Thanked 202 Times in 122 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by Tihiy_Don View Post
I have the following code that cuts the text I don't need from the amount of RAM in the system.




Is there a way around this by using some parameter in the FMX library to immediately remove the text from the RAM line in RamInfo.TotalRam?
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;

Last edited by hitman797; 29-01-2024 at 16:32.
Reply With Quote