Why does this go into an infinate loop? I'm trying to set all paragraphs prior to a particular position to blank lines.
while not (par = nil) do
begin
par.SetText('');
par := par.PrevPar;
end;
It works if I insert a space, but not if I insert an empty string.
Is there a better way to do this?