Code: Select all
for i := 1 to Length(Result) - 1 do begin
if (Result[i] = '&') and (Result[i + 1] = '#') and ((Length(Result) - i) >= 3) then begin
Code: Select all
for i := 1 to Length(Result) - 1 do begin
if ((Length(Result) - i) >= 3) and (Result[i] = '&') and (Result[i + 1] = '#') then begin
I'm using version 5.20.05.