Quote:
Originally Posted by Tihiy_Don
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;