Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var
//declare a string
s : string;
i : integer;
....
//set the text in the RichEdit to the variable
s:=richedit1.text;
//from the 1 character in the string to the last character in the string do something
for i:=1 to length(s) do
begin
...
if s[i]=' ' then inc(spacecount); // character = s[i]
...
end