function ExtractNumber(s: string): integer;
var i: integer;
begin
if Pos('=', s) > 0 then
s := Copy(s, Pos('=', s)+1, Length(s));
for i := 1 to Length(s) do
if not (s[i] in ['0'..'9']) then
begin
System.Delete(s, i, Length(s));
break;
end;
Result := StrToIntDef(s,0);
end;
|